Installed Hotfixes


posted by Richard Giles
02-17-2009

Downloads: 493
File size: 1009 B
Views: 1,928

Embed
Installed Hotfixes
  1. <?xml version="1.0"?> 
  2. <CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"
  3.     <CodeSnippet Format="1.0.0"
  4.         <Header> 
  5.             <Title>Installed Hotfixes</Title> 
  6.             <Shortcut /
  7.             <Description>get installed hotfixes and output to a file</Description> 
  8.             <Author>Idera</Author> 
  9.             <SnippetTypes> 
  10.                 <SnippetType>Expansion</SnippetType> 
  11.             </SnippetTypes> 
  12.         </Header> 
  13.         <Snippet> 
  14.             <Declarations> 
  15.                 <Literal> 
  16.                     <ID>param1</ID> 
  17.                     <ToolTip /
  18.                     <Default>Name/IP</Default> 
  19.                 </Literal> 
  20.                 <Literal> 
  21.                     <ID>param2</ID> 
  22.                     <ToolTip /
  23.                     <Default>c:\Installedhotfixes.txt</Default> 
  24.                 </Literal> 
  25.             </Declarations> 
  26.             <Code Language="PowerShell" Kind="62"><![CDATA[Get-WmiObject -class win32_quickfixengineering -computername '$param1$' | select-object -property hotfixid,description,fixcomments,servicepackineffect,installedby | format-table -wrap | out-file -width 256 -filepath $param2$]]></Code> 
  27.         </Snippet> 
  28.     </CodeSnippet> 
  29. </CodeSnippets> 
Filed under: ,

Get installed hotfixes and output to a file

Copyright 2012 PowerShell.com. All rights reserved.