Can someone tell me why this is failing (and how to fix it)??
Get-ADComputer -Filter * -SearchBase "OU=Test, OU=Hanger,OU=Planes Computers,DC=notmydomain,DC=com" |restart-computer $_.name
I have confirmed the first part works. As a minor side question, how could I get the first part to output only the name with no title like "BOB" and not "Name: BOB"
Thanks for your help!!!