Schedule Task creating Mailboxes
We created a mailbox script a lot time ago, the powershell script works fine until we applied Exchange 2007 SP1 Rollup # 6, then we started to get random failures, it seems that the script does not create the mailbox. Since this is a schedule task this is so hard to troubleshoot what is not happening. Every time the script is run manually it never fails. Does anyone have any suggestions?We are going to apply Exchange 2007 Rollup # 7 to see if this fixes the problem.The server we run the scripts from is Windows 2003 32-bit running the management console only.
March 22nd, 2009 4:35pm

Why don't you set the redirection of the output of your scheduled script to a text file so if it is giving any error, it is being logged into it.Your scheduled script would be configured like below and add the redirection of output to log file with>> C:\log\result.log...powershell -command "& {C:\pathofscript\scriptname.ps1}" >> C:\log\result.logAmit Tank | MVP - Exchange | MCITP:EMA MCSA:M | http://ExchangeShare.WordPress.com
Free Windows Admin Tool Kit Click here and download it now
March 23rd, 2009 7:52pm

We have tried almost everythingbut we still are getting random failures. We tried the log file but that does not show anything. Like on 4-3-2009, 5 accounts/mailboxes were suppose to be created, the script skipped the first three but continued to create the last 2 accounts/mailboxes.Suggestions are welcome.
April 6th, 2009 5:58pm

Have you implemented the suggestion to log the output to a log file to review later for random failures? If so, what error it gives for the first three accounts which were skipped by script on 4-3-2009?Amit Tank | MVP - Exchange | MCITP:EMA MCSA:M | http://ExchangeShare.WordPress.com
Free Windows Admin Tool Kit Click here and download it now
April 6th, 2009 6:03pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics