Tim's Tech Repository

Where I keep my stuff
  • Home

Date Archives: May 20, 2016

Home | 2016 | May | 20
Uncategorized

Catching Errors with Get-AD* cmdlets

May 20, 2016 / timmy8ken
I’m putting this here for reference, but the idea comes from Richard Siddaway’s blog post: Error trapping when getting AD objects. When trying to discover if a list of old VMs had AD accounts I was getting errors when the account did not exist: Get-ADComputer : Cannot find an object
Continue Reading
Leave a comment

Proudly powered by WordPress and Designed by Solwin Infotech