Hi guys, was hoping I could get some help. I am a really not very good with powershell and recently I was asked to provide a script that will scan AD and disable any computer X last logged in, move them to an OU. Yes I found a handful of these on the web, but half of them dont work also I realized I need to scan by specific OU (multiple ou’s) as I dont want this to run against my servers just workstations. Could anyone help or point me in the right direction?
Scan multiple OU’s in AD
Disable workstaions last log on date X
Move to OU