troubleshooting Question

Need script to move Workstations in AD

Avatar of NBquery
NBquery asked on
Active DirectoryVB ScriptWindows Batch
8 Comments2 Solutions1603 ViewsLast Modified:
Hi All,

We have many PC's in  'Workstations' container in AD that no longer exist.  This is due to poor house cleaning on our part and now we need to move them to the 'Disabled Workstations' OU.  Is there a way to automate the process to move a PC based on the last time the object was modified in AD (which is the same as the machine last logon to the domain)?  I want to move any workstation that has not logged into the domain 60 days or older.  If so, is it possible to set this on a schedule?

Thanks guys!!
Join our community to see this answer!
Unlock 2 Answers and 8 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 8 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros