Auto restart MS Outlook after it shuts down

Hi,

We have Outlook 2010 open on 1 pc that is normally unattended. Is there any way that Outlook can be restarted automatically, as sometimes it shuts itself down?

Many thanks
Morpheus7Asked:
Who is Participating?
 
Sikhumbuzo NtsadaConnect With a Mentor Senior IT TechnicianCommented:
Create a schedule tast to run the following script at intervals.
save it as a .vbs script.
Const olFolderInbox = 6

strComputer = "."

Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")

Set colItems = objWMIService.ExecQuery _
    ("Select * From Win32_Process Where Name = 'outlook'")

If colItems.Count = 0 Then
    Set objOutlook = CreateObject("Outlook.Application")
    Set objNamespace = objOutlook.GetNamespace("MAPI")
    objNamespace.Logon "Default Outlook Profile",, False, True    
    Set objFolder = objNamespace.GetDefaultFolder(olFolderInbox)
    objFolder.Display
End If

Open in new window

0
 
Sikhumbuzo NtsadaConnect With a Mentor Senior IT TechnicianCommented:
Here is a step by step on creating a scheduled task.
http://www.howto-outlook.com/howto/closeoutlookscript.htm#closeoutlook
0
 
Morpheus7Author Commented:
Hi,

Thanks for your reply.  We need outlook to be running 24/7, but sometimes it shuts itself down and does not restart.  Is there a way to do this?
Thanks
0
 
AlexiosConnect With a Mentor Commented:
First you have to find out why outlook shuts itself down. This is not normal behavior

- Have you checked the disk for errors?

-Possible the pst file is corrupted
Use the PST Scan Tool to fix the PST file
http://www.addictivetips.com/windows-tips/outlook-2010-pst-file-repair-tool/
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.