Powershell Get-ADComputer – All of My Sons..

How Many computers you’re managed ?

when did you checked last time ?

are all the computers object on your directory are “alive” ?

first thing first ..

First –

load the Active Directory Module

Note: Since Powershell V.3 the module of Active Directory will be loaded automatically if you’ll just enter a command from this module.

 

But  we like to help it out.

lets store the results in a Variable Array so we can use it again … and again..

now we can view the results by typing the variable $list ,and we can also can count the number of objects we got returned from the command

we ran by the “Count” option..

like $list.Count

 

All Together –

 

Related Post: Test-Connection

(Visited 257 times, 1 visits today)

Leave a Reply