Skip to content

Search for Disabled Users and Move to Disabled Ou using PowerShell

Search for Disabled Users and Move to Disabled Ou using PowerShell

Created this script to search a ‘OU’ for disabled users and move them to a different ou . I have added the ‘WhatIf’ option by default .

Once you run the script it will prompt for ‘Search OU’ and ‘Target OU’ .

 

Hope this helps someone 🙂

 

#ThatlazyAdmin

 

 

 

 

 

 

 

 

 

 

 

Sharing is caring!

Published inActive DirectoryAzurePowerShellWindowsWindows Server 2008Windows Server 2012Windows Server 2016

Be First to Comment

Leave a Reply

Your email address will not be published.