Link to home
Start Free TrialLog in
Avatar of adamtrask
adamtrask

asked on

Using a power shell batch file to disable a user in Active directory

Hi,

I need help creating a power shell batch file that would disable a user in Active directory.
Of course the file needs to prompt for the ADUser name and then proceed to disable him/her.

It would be a bonus if the file could also include code to move the newly disabled AD user to a folder called OldUsers.

Thanks
ASKER CERTIFIED SOLUTION
Avatar of Will Szymkowski
Will Szymkowski
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
no points: oBda -- like your solution!
Avatar of adamtrask
adamtrask

ASKER

Thank you very much.... oBda -- I need to spend some time studying your solution. Thank you.