Script for to search multiple OUs looking for inactive computers and moving them

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?

Script

Scan multiple OU’s in AD
Disable workstaions last log on date X
Move to OU

Thanks!

Michael, welcome to Powershell.org. Please take a moment and read the very first post on top of the list of this forum: Read Me Before Posting! You’ll be Glad You Did!.

This forum is for scripting questions rather than script requests. We do not write customized and ready to use scripts or solutions on request.