Link to home
Start Free TrialLog in
Avatar of MilesLogan
MilesLoganFlag for United States of America

asked on

Get-Hotfix information on multiple machines

Can someone help? I need to pull the information below from a list of machines but I cant get it to work when trying multiple machines .

This works
Get-HotFix -ComputerName Server1 | select PSComputerName,InstalledOn,__PATH,Caption,HotFixID,InstalledBy | Export-Csv Data.csv -nti

If I try to pull from a list , it does not work .
gc servers.txt | Get-HotFix | select PSComputerName,InstalledOn,__PATH,Caption,HotFixID,InstalledBy | Export-Csv Data2.csv -nti

Error:
Get-HotFix : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the parameters that take pipeline input.
At line:1 char:18
+ gc servers.txt | Get-HotFix | select PSComputerName,InstalledOn,__PATH,Caption,H ...
ASKER CERTIFIED SOLUTION
Avatar of SubSun
SubSun
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of MilesLogan

ASKER

Thank you Subsun !  I will be posting another question related to this is you have a few mins.