MilesLogan
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,Ca ption,HotF ixID,Insta lledBy | 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,Ca ption,HotF ixID,Insta lledBy | 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,Ca ption,H ...
This works
Get-HotFix -ComputerName Server1 | select PSComputerName,InstalledOn
If I try to pull from a list , it does not work .
gc servers.txt | Get-HotFix | select PSComputerName,InstalledOn
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
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER