Need script to move disable user/computer to respective location Disable OU

Hi All,

I need powershell script which moves disabled users/Computer to respective location disabled OU. OU structure as below
contoso.com
Users
–US
–Users
—Disableduser
–UK
–Users
–Disableduser

requirement is if any disabled user is exist in User OU then it should move automatically to their site disableuser OU.

Could anyone help to creating powershell script
thank in advance.

San,
Welcome again to the forum. :wave:t3:

Did you read my reply on your last question a few minutes ago? :man_shrugging:t3: The same is valid for this question.

This is a peer to peer forum where coders help other coders with their challenges. It is NOT a free script shop.

Regardless of that … When you post code, sample data, console output or error messages please format it as code using the preformatted text button ( </> ). Simply place your cursor on an empty line, click the button and paste your code.

Thanks in advance

How to format code in PowerShell.org 1 <---- Click :point_up_2:t4: :wink:

( !! Sometimes the preformatted text button hides behind the settings gear symbol. :wink: )

1 Like