We value your feedback.
Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!
This works to an extent and populates the text file with servers it is able to locate. For the servers it's unable to locate or obtain the operating system I would like this to be marked with "Not found". At the moment, there is no mention of these servers in the output text file. Essentially something like this;
Get-Content "servers.txt" | Get-ADComputer -Properties Name, OperatingSystem | Select Name, OperatingSystem > ServerOperatingSystems.txt
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
|Powershell script to find Office version of all PC's in an OU||1||32|
|Determine if a local GPO is enabled from the command line||4||22|
|Time server on domain||3||25|
|EXCHANGE 2010, EXCHANGE 2013||4||24|