Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Powershell Get-ADComputer Help Needed

$
0
0

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


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>