(I am planning to post a separate question to get a solution to this.) I have to kill the task manually via task manager. One consistent problem is - the Excel.exe process started by powershell never exits after script has finished running. #$newmail.HTMLBody +=$().PasteExcelTable($false,$false,$true) # PasteExcelTable works on PC1 but Fails on PC2 consistently (with PowerShell 3.0) $excel = New-Object -comobject Excel.Application $InboxFolder = $namespace.getDefaultFolder($olFolders::olFolderInBox) $namespace = $outlook.GetNameSpace("MAPI") $outlook = new-object -comobject Outlook.Application The main difference between the two machines is the PowerShell version. I have run the script on both machines using PowerShell ISE.
PC2- Windows 7 64 bit with SP1, Office 2010 32 bit and PowerShell 3.0. PC1- Windows 7 64 bit with SP1, Office 2010 32 bit and PowerShell 2.0. The script was developed on PC1 using PowerShell 2.0 64 bit ISE. I have two PCs on which script was tested. Then post this crash log including additional information about your environment (such as version of Outlook, version of Windows and type of mail account) in one of the Outlook Forums.The script below does the following - create a new email, open an excel file, copy content from it, paste into the new email and send it. Look in the Event Viewer to locate Outlook’s crash log. Still nothing? Further details about your crash and Outlook environment is needed. To verify this, you can recreate your mail profile. If Outlook still crashes upon send/receive, the issue might be rooted in your mail profile. For instance, when your ISP is using H-Sphere Horde Mail, look for the “Purge Deleted” option. Note Some web mailboxes require you to delete the message twice to really get rid of it.
If the send/receive crash is caused by a corrupt message, it often is not hard to detect which message it is usually it is caused by a spam message.ĭelete the corrupt message from the web based mailbox and try the send/receive function in Outlook again. To remedy this, logon to your mailbox via the web interface provided by your ISP or company and take a look at the messages that still need to be downloaded. If the message on the server to be downloaded is not what Outlook expected, depending on the message corruption, Outlook could crash. If you are in ANSI format and are using Outlook 2003 or later, you can convert your pst-file to a Unicode formatted pst-file. In that you must start with a new pst-file. If the pst-file is reaching the 2GB (usually around 1.8GB) and you are using an ANSI formatted pst-file, your are reaching the limit of the pst-file. To scan your pst-file for errors you can use the Inbox Repair Tool (scanpst.exe). If your pst-file holds any corruptions, then writing new data to it could crash Outlook as well. It only resets information such as how often Outlook will check for new mail.
Note 2: Resetting the srs-file will not delete any mail accounts from Outlook. By default this is called Outlook so the file would then be called outlook.srs and you would rename it to outlook.old. srs where stands for the name of your Outlook Mail Profile. You can find the file in the following location Ĭ:\Users\%username%\AppData\Roaming\Microsoft\Outlook\Ĭ:\Documents and Settings\%username%\Application Data\Microsoft\Outlook\ To reset your send/receive settings, all you have to do is renaming the srs-file to. If this file gets corrupted somehow, the send/receive will crash. Outlook keeps the send/receive settings in an srs-file. Also see Disable virus scanner integration? Reset send/receive settings
Afterwards you can install it again without the mail scanning features or use Microsoft Security Essentials instead.Ĭontrary to common beliefs, you are still fully protected if your virus scanner does not integrate with Outlook.
You can also opt to uninstall your virus scanner completely to make sure it cannot interfere while testing.
Consult the documentation of your virus scanner on how to properly disable its mail integration components. Turning off your virus scanner will not disable its integration components. If you still have a virus scanner installed which integrates itself with Outlook, disable this integration and try again. Note: If you are getting send/receive errors instead of crashes, see the guide Send/Receive errors Disable virus scanner integration There are a couple of common causes and solutions for this. How can I get Outlook back to work again? However, it would be nice to be able to send/receive some new emails as well.
I can still use all the other functions in Outlook and Outlook works just fine when I place it in Offline mode. Whenever I try to send a message, click on the Send/Receive button or when Outlook sends/receives by itself, Outlook crashes.