Set-CsOnlineVoiceUser

 

上次修改主題的時間:2017-06-20

Use the Set-CsOnlineVoiceUser to set the PSTN specific parameters (like telephone numbers and emergency response locations.)

Set-CsOnlineVoiceUser -Identity <UserIdParameter> [-Confirm [<SwitchParameter>]] [-DomainController <Fqdn>] [-Force <SwitchParameter>] [-LocationID <Guid>] [-TelephoneNumber <String>] [-Tenant <Guid>] [-WhatIf [<SwitchParameter>]]

This example sets the telephone number and location for a user identified by the user ObjectID.

Set-CsOnlineVoiceUser -Identity 3c37e1c7-78f9-4703-82ee-a6b68516794e -TelephoneNumber +4255037311 -LocationID c7c5a17f-00d7-47c0-9ddb-3383229d606b

 

Parameter Required Type Description

Identity

Required

Microsoft.Rtc.Management.AD.UserIdParameter

Specifies the identity of the target user. Acceptable values include:

  • User Principal Name (UPN)

    Example: jphillips@contoso.com

  • SIPAddress

    Example: sip:jphillips@contoso.com

  • ObjectID, or GUID

    Example: 98403f08-577c-46dd-851a-f0460a13b03d

註記注意事項:
You can use the Get-CsOnlineUser cmdlet to identify the users you want to modify.

Confirm

Optional

System.Management.Automation.SwitchParameter

Confirm 參數會導致此命令暫停處理,並需要確認才能進行。

DomainController

Optional

Microsoft.Rtc.Management.Deploy.Fqdn

將保留此參數供 Microsoft 內部使用。

Force

Optional

System.Management.Automation.SwitchParameter

Force 參數會指定是否抑制警告和確認訊息。這在撰寫指令碼以抑制互動式提示時可能很有用。如果命令中不提供 Force 參數,您會在必要時看到提示管理員輸入。

LocationID

Optional

System.Guid

Specifies the unique identifier of the emergency location to assign to the user. Location identities can be discovered by using the Get-CsOnlineLisLocation cmdlet.

註記注意事項:
This parameter is required for users based in the US.

TelephoneNumber

Optional

System.String

Specifies the telephone number to be assigned to the user. The value must be in E.164 format: +14255043920. Setting the value to $Null clears the user's telephone number.

Tenant

Optional

System.Guid

將保留此參數供 Microsoft 內部使用。

WhatIf

Optional

System.Management.Automation.SwitchParameter

WhatIf 參數會導致此命令模擬其結果。使用此參數,您不需認可變更,就能檢視這些變更。

BypassDualWrite

Optional

System.Boolean

PARAMVALUE: $true | $false

 
顯示: