Here is what we want to achieve:
We have lots of user folder that still exist even after the user has moved out of the organization. We want to move that user's folder to a separate share on the network.
So:
If a UserID exists in the Terminated OU in AD
Move the users folder on a \\server\share\userfolder
to \\server\share\.DELETEDUSER folder
It would be great if anyone has a script to achieve the same.
Thank you.
We have lots of user folder that still exist even after the user has moved out of the organization. We want to move that user's folder to a separate share on the network.
So:
If a UserID exists in the Terminated OU in AD
Move the users folder on a \\server\share\userfolder
to \\server\share\.DELETEDUSER folder
It would be great if anyone has a script to achieve the same.
Thank you.