Link to home
Start Free TrialLog in
Avatar of jesaja
jesajaFlag for Switzerland

asked on

Backup Archive.pst in domain environment

I user Exchange in an AD domain. Clients have local profiles and the archive task in outlook will create the archive.pst file locally under the application data folder ..

Now how do I backup this file as administrator for all users in the domain.

Or any other solutions how users can archive mails. There are some users they work sometimes offline from the domain.

regards
ASKER CERTIFIED SOLUTION
Avatar of din101
din101
Flag of United Kingdom of Great Britain and Northern Ireland 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
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
Avatar of Seankubin
Seankubin

Paste the below into notepad and save it as "autoarchive.bat", edit as neccesary and run it.


@echo This will create a batch file on the root of c:
@echo This will also create a Scheduled event to run said batch file every friday night.
@echo Assumptions are that each user has a personal drive on the server, mapped to u:
@echo Also assuming that all users have archive.pst in default location.
@echo Also assuming that user that runs this batch file is the same user that needs autoarchive setup
pause

#step 1. create batch file on root of c:
@echo copy %userprofile%\Local Settings\Application Data\Microsoft\Outlook\archive.pst u:\AutoArchive /Y > c:\PushArchiveUp.bat

#Step 2. Do a little prep work on the U: drive. (add a folder for pst to live)
mkdir u:\AutoArchive

#Step 3. Schedule a system task to run that batch file.
at 4:30pm /every:Friday c:\PushArchiveUp.bat

#Testing it out...
@echo All done.. you can Ctrl- C to exit now, otherwise I will copy the Archive.pst to the U: drive now.
pause
cls

c:\PushArchiveUp.bat

@echo.  Any errors? If not lets go look at the u: drive and make sure we have a newly created archive.pst.
pause

dir u:\AutoArchive\archive.pst

@echo If the above looks good then we can quit.. otherwise we need to fix the batch file..
@echo.
@echo Ctrl-C to quit, otherwise I'll open the batchfile for you to edit on.
pause

notepad c:\PushArchiveUp.bat