Search for Disabled Users and Move to Disabled Ou using PowerShell

0
38
views

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!

Previous articleBulk add users to Distribution Group
Next articleExchange 2016 message throttling settings
About Me ? I Guess i would start by saying i am a family guys and full time SysAdmin and Tech Junky. This Blog is my first attempt to share information about daily issues i come across as a SysAdmin as well as some new deployments i am part of. Topics that i will cover will mostly be about Office 365,Windows,Exchange as well as Active Directory. I hope some of my Blog posts helps someone #LiveLongAndBeLazy #Exchange #Office 365 #ActiveDirectory #Hyper-V
SHARE

LEAVE A REPLY

Please enter your comment!
Please enter your name here