Delay after creating a room before Set-CalendarProcessing functions

Status
Not open for further replies.
K

Karl Mitschke

I'm working on a script to allow our agency administrators to create a mailbox as a resource, and set calendar processing options.

The flow is:

Enable-Mailbox -identity <existing user> -Database <db> -Alias <samaccountname> -Room
Set-CalendarProcessing -AutomateProcessing:AutoAccept -DeleteSubject:$false -AddOrganizerToSubject:$false -RemovePrivateProperty:$false -Identity <existing user>

The Set-CalendarProcessing cmdlet fails with:
Cannot open mailbox /o=<Orginization>/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Configuration/cn=Servers/cn=<Server name>/cn=Microsoft System Attendant.
+ CategoryInfo : NotSpecified: (0:Int32) [Set-CalendarProcessing]
, MailboxUnavailableException
+ FullyQualifiedErrorId : EE2D9ADB,Microsoft.Exchange.Management.RecipientTasks.SetMailboxCalendarSettings

If I wait for up to 10 minutes, the Set-CalendarProcessing cmdlet works fine.

I've tried using the -DomainController paramater on both the Set-Mailbox and the Set-CalendarProcessing cmdlet with no help.

This is for a mailbox created on either an Exchange 2010 database, or a 2007 database.

What can I do to speed this up?

Karl

http://unlockpowershell.wordpress.com
-join(" 6B61726C6D69747363686B65406D742E6E6574" -split" (?<=\G.{2})" ,19|%{[char][int]" 0x$_" })
 
M

mjolinor

There's no way to speed it up enough that the mailbox will be ready in time for set-calendarprocessing cmdlet to run immediatly after the enable-mailbox is run.

When I provision user accounts, I use a get-mailbox/start-sleep loop after I enable the mailbox, and wait until I get a good return on get-mailbox before I try to do any additional setup on the mailbox.

[string](0..33|%{[char][int](46+(" 686552495351636652556262185355647068516270555358646562655775 0645570" ).substring(($_*2),2))})-replace " "
 
K

Karl Mitschke

Hello;

I should have mentioned that a Get-Mailbox returns valid data within our normal AD latency.

The Set-CalendarProcessing cmdlet fails for up to 10 minutes past the Get-Mailbox cmdlet returning the data.

I was using this loop, but don't want to wait, so I may end up telling customers that the Set-CalendarProcessing will have to be run as a seperate scheduled task:

Enable-Mailbox
Do
until (Get-CalendarProcessing <mailbox>)
Set-CalendarProcessing

I'd originally hhought it was AD latency, but I wrote the blog post on that ;)
http://unlockpowershell.wordpress.com/2010/01/08/powershell-dealing-with-active-directory-latency/

Thanks, though

Karl
http://unlockpowershell.wordpress.com
-join(" 6B61726C6D69747363686B65406D742E6E6574" -split" (?<=\G.{2})" ,19|%{[char][int]" 0x$_" })
 
M

mjolinor

Weird. There must be some additional latency in Exchange. Ten minutes seems like a long time to wait.

[string](0..33|%{[char][int](46+(" 686552495351636652556262185355647068516270555358646562655775 0645570" ).substring(($_*2),2))})-replace " "
 
J

Jeff lawrence

Karl,

Any luck with this issue - we are running into the exact issue in our environmnet (Takes around 10 minutes and it doesn't seem related to replication - we force a DC and replication is complete in 2-3 minutes)

There is some discussion in other forums that the mailbox hasn't initialized and created the calendar subfolder yet - but I see no mention of such a requirement in the help or in the many walk throughts, ex: http://msexchangeteam.com/archive/2007/05/14/438944.aspx

Jeff
 
K

Karl Mitschke

Jeff;

No change here.

We recently updated our 2010 severs to SP1, and we still have the issue.

On our recovery server, in a seperate domain (running on Hyper-V in a private network, with 1 Server 2008 DC, 1 Server 2008 running Exchange 2007, and one Server 2008 R2 running Exchange 2010) I get results from Get-CalendarProcessing within 1 second of mailbox creation.

I can alse run Set-CalendarProcessing within 1 second of mailbox creation

Sure wish I could do that in Production :)

I will test sending a mail message to the resource and then running Get-CalendarProcessing.

Karl

http://unlockpowershell.wordpress.com
-join(" 6B61726C6D69747363686B65406D742E6E6574" -split" (?<=\G.{2})" ,19|%{[char][int]" 0x$_" })
 
Status
Not open for further replies.
Thread starter Similar threads Forum Replies Date
J Diane's Delay Delivery at Specific Times Questions Outlook VBA and Custom Forms 5
K Delay Send and Mail Merge Outlook VBA and Custom Forms 4
D Delay Send not working Using Outlook 3
T Query About "Delay Delivery" Function Using Outlook 6
X Delay sending an email until the next working day (public holidays) Outlook VBA and Custom Forms 0
S Delay Delivery Macro Outlook VBA and Custom Forms 1
Diane Poremsky Delay Delivery of Messages Sent at Specific Times New Slipstick.com Articles 0
Diane Poremsky To delay sending a message in Outlook New Slipstick.com Articles 0
B Macro to delay email Outlook VBA and Custom Forms 0
G "Delay Delivery" Email fails to send if opened while in Outbox Using Outlook 4
Diane Poremsky To delay sending a message in Outlook New Slipstick.com Articles 1
D Delay Delivery: Visible to recipients? Using Outlook 1
Y All emails are received with delay on outlook 2010 Using Outlook 5
M How to forward a message and delay sending for up to 30 days Using Outlook 8
R Long delay for outgoing mail Using Outlook 2
P time delay between accessing Outlook file folders, up 20+ second delay Using Outlook 1
W Attachment delay issue for listing network files Using Outlook 1
I Long delay in switching folders since I installed IE 9 Beta Using Outlook 2
S 6 to 8 second delay in folders opening since installing a number of updates yesterday. Using Outlook 1
K Outlook 2007 Delay Delivery feature not working Using Outlook 1
L Delay / Send outgoing mail during certain hours Using Outlook 1
N Outlook 2007 and 2010 New Mail Delay Exchange Server Administration 1
P Delay delivery not working in Outlook Using Outlook 1
J Delay sending emails in Office Outlook 2010 Using Outlook 2
A E-mail receive delay in Exchange 2010 Exchange Server Administration 4
H Messages won't leave Outbox - sit in Date:None and cannot be sent (delay send becomes checked as wel Using Outlook 1
S Delivery delay set by default Using Outlook 2
B Outlook - Delay in loading messages in Outlook folder Using Outlook 2
H Delay Delivery Option is being automatically selected and cannot be changed and does not allow emails to be sent. Using Outlook 1
I 5 minute delay sending email from 2010 to 2003 Exchange Server Administration 11
L Receiving Mail Delay Using Outlook 10
M Mail delay when sending massive mail throuhg Exchange 2010 Exchange Server Administration 9
C Exchange 2010 email delay Exchange Server Administration 3
N Re: Mail Flow Delay in Exchnage 2010 Exchange Server Administration 1
N Mail Flow Delay in Exchnage 2010 Exchange Server Administration 12
F OUTLOOK 2010 - How to delay sent mail? Using Outlook 2
C Delay Sending Messages option--Outlook 2007 Using Outlook 4
N Outlook 2010, Emails are sent promptly but recipient gets only after long delay (45-60 minutes) Using Outlook 1
C Delay the message you send from MS Exchange 2007 Exchange Server Administration 3
I Outlook 2007 delay delivery is automatically setting on every email?? Using Outlook 1
A Re: Outlook 2010 connection to Exchange 2010 Delay Exchange Server Administration 3
J Rule to Forward email but delay delivery 10 minutes Outlook VBA and Custom Forms 2
C Outlook 2007 Delay Delivery Problem Using Outlook 10
Fozzie Bear Outlook 2016 Creating a shared local Contacts folder Using Outlook 2
R Creating a user defined function Outlook VBA and Custom Forms 3
M Creating an RSS Feed **FROM** Outlook 2013 Calendar. Using Outlook 5
O How to prevent CC from showing when creating a new mail? Using Outlook 1
N Creating a button or link to a form in the Organizational Forms Library Outlook VBA and Custom Forms 3
B Creating an email with the list of tasks Outlook VBA and Custom Forms 0
L Creating drafts when I thought I was sending Using Outlook 1
Similar threads


















































Top