jmohan0302
asked on
Looking for a script
I am looking for a script to archive the .pst files for the all the users on a particular OU.
Thanks
Thanks
ASKER
Yes. The users who left the organization will be disabled. These disabled users will be moved to a OU called disabled. So the .PST of the users in the disabled OU has to be archived on a centralized location. I want to write a script for archiving the .pst files of the users on the ou called Disabled. Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi Will Thanks a lot
What is the extension to be saved, is it .ps? or.bat file
Also please let me know do I need to provide just the OU name or the distinguished name of the OU.....Thanks
What is the extension to be saved, is it .ps? or.bat file
Also please let me know do I need to provide just the OU name or the distinguished name of the OU.....Thanks
You can copy and past this in to a text file and save the file extension to .PS1. You will need to run this script in the Exchange Management shell (.\scriptname.ps1)
Also for the OU you need to use the following syntax below...
OU=disabled,DC=domain,DC=c om
If your OU that is called disabled is not at the top level you need to use the same syntax and add the additional OU structure.
The below example illustrates having Users are the toplevel OU and disabled OU underneith.
OU=disabled,OU=testou,DC=d omain,DC=c om
Will.
Also for the OU you need to use the following syntax below...
OU=disabled,DC=domain,DC=c
If your OU that is called disabled is not at the top level you need to use the same syntax and add the additional OU structure.
The below example illustrates having Users are the toplevel OU and disabled OU underneith.
OU=disabled,OU=testou,DC=d
Will.
Please provide more detail.
Will.