• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 429
  • Last Modified:

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
0
Morpheus7
Asked:
Morpheus7
  • 2
3 Solutions
 
Sikhumbuzo NtsadaCommented:
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
 
Sikhumbuzo NtsadaCommented:
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
 
AlexiosCommented:
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

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now