Hello All,
I have used Get-ADComputer to do an export of all computers in our environment as I need to install an agent to all servers. It is not quite what I need though. Can someone please help with the following two scenarios:
1. I need the script to not include decommissioned servers so is it possible to have the command only include computers that have checked in in the past 90 days?
2. I need to check that I service has been installed on each machine. Is it possible to run a powershell command so that it checks each computer and outputs a list of servers where a particular service name is installed?
Your help is much appreciated.
James