Cloud Connector Edition set automatic tenant update time windows

A very important task after installing a CCE (Cloud Connector Edition)

You must set a proper Update Time for your CCE Windows Updates und CCE Patching.

WARNING 1:
If you don't do this, at any point of time the CCE might start installation updates and will set you offline for the installation for up to 3hrs+.

WARNING 2:
You have to configure the UPDATE Window before you deploy the CCE!

NOTE:
The time zone is not configurable, but is tight to the Hyper-V host (the CCE location) defined in the windows host. Make sure the time zone setting are correct on the CCE!


First login in to your Office 365 Tenant

Import-Module skypeonlineconnector
$cred = Get-Credential
$Session = New-CsOnlineSession -Credential $cred -Verbose
Import-PSSession $session


Enable (Updates Windows)

You have to identify (name) and define a update windows

New-CsTenantUpdateTimeWindow -Identity AlwaysOn -Daily -StartTime 0:00 -Duration 24:00

You have to identify your CCE site and assign the update windows
The Update windows should be setup for both WindowsUpdates and CCE BitsUpdate

Set-CsHybridPSTNSite -Identity <SiteName> -OsUpdateTimeWindow @{add="AlwaysOn"} -BitsUpdateTimeWindow @{add="AlwaysOn"}


Disable (Update Windows)

Create a time window in which the update will not be applied:

New-CsTenantUpdateTimeWindow -Identity NeverOn -Monthly -WeeksOfMonth First -DaysOfWeek Sunday -StartTime 3:00 -Duration 0:0

Apply the new time window to your site:

Set-CsHybridPSTNSite -Identity <SiteName> -OsUpdateTimeWindow @{add="NeverOn"} -BitsUpdateTimeWindow @{add="NeverOn"}


Further information's:

The switch in the cmdlet -BitsUpdateTimeWindow can be modified with add, remove and replace

Other example:

  • New-CsTenantUpdateTimeWindow -Identity Night -Daily -StartTime 22:00 -Duration 6:00

  • New-CsTenantUpdateTimeWindow -Identity WeekdayNight -Weekly -DaysOfWeek Monday,Tuesday,Wednesday,Thursday,Friday -StartTime 22:00 -Duration 4:00

  • New-CsTenantUpdateTimeWindow -Identity FirstAndLastWeekend -Monthly -WeeksOfMonth First,Last -DaysOfWeek Sunday,Saturday -StartTime 0:00 -Duration 10:00

  • New-CsTenantUpdateTimeWindow -Identity MidDayOfMonth -Monthly -DayOfMonth 15 -StartTime 0:00 -Duration


Comments

Popular posts from this blog

How to hide users from GAL if they are AD Connect synchronized

Cannot join external Lync Meeting: Lync Edge Server Single IP Address (Lync Edge Server Single IP Web Conferenceing Problem)

MFA with Guest Access and different tenants settings