Muokkaa

Jaa


Set-CsTenantUpdateTimeWindow

Use the Set-CsTenantUpdateTimeWindow cmdlet to modify an existing tenant update time window's attributes.

Syntax

Set-CsTenantUpdateTimeWindow
   [-Identity] <XdsGlobalRelativeIdentity>
   [-Tenant <Guid>]
   [-StartTime <TimeSpan>]
   [-Duration <TimeSpan>]
   [-Force]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-CsTenantUpdateTimeWindow
   [-Identity] <XdsGlobalRelativeIdentity>
   [-Tenant <Guid>]
   [-Daily]
   [-StartTime <TimeSpan>]
   [-Duration <TimeSpan>]
   [-Force]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-CsTenantUpdateTimeWindow
   [-Identity] <XdsGlobalRelativeIdentity>
   [-Tenant <Guid>]
   [-Weekly]
   [-StartTime <TimeSpan>]
   [-Duration <TimeSpan>]
   -DaysOfWeek <TenantUpdateTimeWindowDayOfWeek>
   [-Force]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-CsTenantUpdateTimeWindow
   [-Identity] <XdsGlobalRelativeIdentity>
   [-Tenant <Guid>]
   [-Monthly]
   [-StartTime <TimeSpan>]
   [-Duration <TimeSpan>]
   -DayOfMonth <Int32>
   [-Force]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-CsTenantUpdateTimeWindow
   [-Identity] <XdsGlobalRelativeIdentity>
   [-Tenant <Guid>]
   [-Monthly]
   [-StartTime <TimeSpan>]
   [-Duration <TimeSpan>]
   -WeeksOfMonth <TenantUpdateTimeWindowWeekOfMonth>
   -DaysOfWeek <TenantUpdateTimeWindowDayOfWeek>
   [-Force]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-CsTenantUpdateTimeWindow
   [-Identity] <XdsGlobalRelativeIdentity>
   [-Tenant <Guid>]
   [-StartTime <TimeSpan>]
   [-Duration <TimeSpan>]
   [-Instance <PSObject>]
   [-Force]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

Tenant update time windows are created, retrieved, modified, and deleted by the CsTenantUpdateTimeWindow cmdlet group (New, Get, Set and Remove). The tenant update time windows can be reviewed in your hybrid configuration by using the Get-CsTenantHybridConfiguration cmdlet. However, you can't create or modify tenant update time windows through the CsTenantHybridConfiguration cmdlets. You must use the CsTenantUpdateTimeWindow cmdlets to manage tenant update time windows.

To return a list of all the Role-Based Access Control (RBAC) roles a cmdlet has been assigned, run the following command:

Get-CsAdminRole | Where-Object {$_.Cmdlets -Match "\<CmdletName\>"}

Examples

-------------------------- Example 1 --------------------------

Set-CsTenantUpdateTimeWindow -Identity FirstAndLastWeekend -Monthly -WeeksOfMonth First,Last -DaysOfWeek Sunday,Saturday -StartTime 1:00 -Duration 5:00

This example updates an existing tenant update time window in the tenant in Monthly type.

-------------------------- Example 2 --------------------------

Set-CsTenantUpdateTimeWindow -Identity MidDay -Monthly -DayOfMonth 15 -StartTime 5:00 -Duration 6:00

This example updates an existing tenant update time window in the tenant in Monthly type.

-------------------------- Example 3 --------------------------

Set-CsTenantUpdateTimeWindow -Identity Weekday -Weekly -DaysOfWeek Monday,Tuesday,Wednesday,Thursday,Friday -StartTime 3:00 -Duration 10:00

This example updates an existing tenant update time window in the tenant in Weekly type.

-------------------------- Example 4 --------------------------

Set-CsTenantUpdateTimeWindow -Identity Night -Daily

This example updates an existing tenant update time window in the tenant in Daily type.

Parameters

-Confirm

PARAMVALUE: SwitchParameter

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Skype for Business Online

-Daily

Type of Time window is daily.

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Skype for Business Online

-DayOfMonth

Day of month. It must be defined when Type is Monthly.

Type:Int32
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Skype for Business Online

-DaysOfWeek

Days of week. It can be multiple days separated by a comma. It must be defined when Type is Weekly or Monthly.

Type:TenantUpdateTimeWindowDayOfWeek
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Skype for Business Online

-Duration

Duration of the update time window.

Type:TimeSpan
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Skype for Business Online

-Force

The Force switch specifies whether to suppress warning and confirmation messages. It can be useful in scripting to suppress interactive prompts. If the Force switch isn't provided in the command, you're prompted for administrative input if required.

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Skype for Business Online

-Identity

Specifies the identity of the tenant update time window.

Type:XdsGlobalRelativeIdentity
Position:2
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Skype for Business Online

-Instance

PARAMVALUE: PSObject

Type:PSObject
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Skype for Business Online

-Monthly

Type of Time window is monthly.

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Skype for Business Online

-StartTime

Time of day when the update time window starts.

Type:TimeSpan
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Skype for Business Online

-Tenant

PARAMVALUE: Guid

Type:Guid
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Skype for Business Online

-Weekly

Type of Time window is weekly.

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Skype for Business Online

-WeeksOfMonth

Weeks of month. It can be multiple weeks separated by a comma. It must be defined when Type is Monthly.

Type:TenantUpdateTimeWindowWeekOfMonth
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Skype for Business Online

-WhatIf

PARAMVALUE: SwitchParameter

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Skype for Business Online