Discussion Locked

How to close Outlook from a command line

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

As you know, in order to have a good backup of the *.pst mailboxes, it is necessary to close the Outlook application on the specific PC. I am trying to find a way to close the Outlook applications on the user PCs in order to backup the pst file through the network. Is there a known way or anything to do it ? The end-user are running on W2K workstations.
Thanks a lot

Jos?

3 replies

by jb007

Havn't heard of a command line tool but have a theoretical way to do it in a batch file.

a) remote list running programs on machine (pslist from sysinternals will do)
b) run grep on the list and find pid for outlook.exe & possibly mapi32.exe (depending on whether outlook shuts down cleanly on next step)
c) kill the pid for outlook.exe
d) run the backup

otherwise a simpler way may be..

a) get everyone to save the psts to a network share
b) at a certain time every night disable access to the share and backup all data (all the users will be cutoff when you disable share) and then reenable the share after backups.

hope this helps,

regards,

jb

This discussion is closed to new replies.