Thursday, 12 November 2009

Outlook process stays open after closing

Situation : When you close outlook the process stays open, when you then attempt to open outlook again nothing appears to happen.

What Happened :Looks like something it holding outlook open, I never got round to figuring out what it was although if you clear out the users AppData or Application Data folder under "Documents and Settings" or "users" or wherever it maybe redirected it fixes the issue. Of course this isn't always and option so I did manage to make a macro that also fixed the issue. I know, I know a bit of a flaky workaround but if you've got someone moaning in your ear then you have to do what you have to do. Anywho to get this working, open up the VB macro Editor, double click ThisOutlookSession and select Application, chose the procedure "Quit" and paste this junk in

Dim objProcesses, objProcess
Set objProcesses = GetObject("WinMgmts:root/CIMV2").ExecQuery("SELECT * FROM Win32_Process WHERE Name = 'OUTLOOK.EXE'")
For Each objProcess In objProcesses
objProcess.Terminate
Next

Lesson Learned :Outlook is a pain in the ass, and once you shoehorn it together with Business Contact Manager... you're screwed.

No comments:

Post a Comment