Solved

check for KB3011780 on multiple machines

Posted on 2014-11-19
3
399 Views
Last Modified: 2014-11-19
How can I run something simlar but to only look for KB3011780 ? and have the output a file with the same data when running get-HotFix -computername server1 -ID KB3011780


gc servers.txt |%{Get-HotFix -ComputerName $_ | select PSComputerName,InstalledOn,__PATH,Caption,HotFixID,InstalledBy} | Export-Csv Data2.csv -nti
0
Comment
Question by:MilesLogan
3 Comments
 
LVL 16

Assisted Solution

by:Rajitha Chimmani
Rajitha Chimmani earned 250 total points
ID: 40453298
gc servers.txt |%{Get-HotFix -ComputerName $_ | ? {$_.HotFixID -eq "KB3011780"} |select PSComputerName,InstalledOn,__PATH,Caption,HotFixID,InstalledBy} | Export-Csv Data2.csv -nti
0
 
LVL 40

Accepted Solution

by:
Subsun earned 250 total points
ID: 40453304
Try this code..
gc servers.txt |%{Get-HotFix -ComputerName $_ -ID KB3011780 -ea silentlycontinue | select PSComputerName,InstalledOn,__PATH,Caption,HotFixID,InstalledBy} | Export-Csv Data2.csv -nti

Open in new window

0
 
LVL 2

Author Closing Comment

by:MilesLogan
ID: 40453360
Thank you both !!
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
A brief introduction to what I consider to be the best editor for PowerShell.
This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question