Pulling information from WSUS

Copper Contributor

I want to refine the results of this command for pulling information from our WSUS server.

 

 

Get-WSUSComputer | Select-Object FullDomainName,IPAddress,Make,Model,OSArchitecture,OSDescription,ClientVersion -ExpandProperty "BiosInfo" | Where {$_.OSDescription -like "*windows 7*"} | export-csv C:\temp\win7.csv

 

 

The -ExpandProperty "BiosInfo" creates the following columns:

Version
Name
ReleaseDate
FirmwareVersion
MobileOperator

 

I want to see only the 'Version'.  I can live with the results of the command I'm using, but I'm hoping I can trim the output so I don't have to manually edit the resulting .csv .

 

2 Replies

Hey @Sudburr 

 

Try adding -First 1 before -ExpandProperty

 

Thanks

@harveer singh No good HS. It creates an empty file / no output.