Grant-CsIPPhonePolicy

 

上次修改主題的時間:2017-03-29

Use the Grant-CsIPPhonePolicy cmdlet to assign an Internet Protocol (IP) phone policy to a user or a group of users. IP phone policies determine the features of 商務用 Skype Online that are available to users. For example, you might enable the Better Together Over Ethernet feature for some users while disabling it for others.

Grant-CsIPPhonePolicy -PolicyName <String> [-Identity <UserIdParameter>] [-Confirm [<SwitchParameter>]] [-DomainController <Fqdn>] [-PassThru <SwitchParameter>] [-Tenant <Guid>] [-WhatIf [<SwitchParameter>]]

This example assigns the IP phone policy "SkypePolicy" to the user with the identity "Ken Myer".

Grant-CsIPPhonePolicy -Identity "Ken Myer" -PolicyName SkypePolicy

This example assigns all the users in the "Sales" department to the "SalesPolicy" IP phone policy. The command first uses the Get-CsUser cmdlet and the LdapFilter parameter to return a collection of all the users who are members of the "Sales" department. This collection of users is piped to the Grant-CsIPPhonePolicy cmdlet, which assigns "SalesPolicy" to each user in the collection.

Get-CsUser -LDAPFilter "Department=Sales" | Grant-CsIPPhonePolicy -PolicyName SalesPolicy

商務用 Skype Online uses IP phone policies to determine the features and capabilities that are available to users. IP phone policies are applied each time a user accesses the system, regardless of where the user logs on from.

 

Parameter Required Type Description

PolicyName

Required

System.String

Specifies the name of the policy to be assigned. The PolicyName is the policy Identity minus the policy scope ("tag:"). For example, a policy that has the identity "tag:Redmond" has a PolicyName equal to "Redmond". If you set PolicyName to a null value, then the command will unassign any per-user policy assigned to the user. For example: Grant-CsIPPhonePolicy -Identity "Ken Myer" -PolicyName $Null

Confirm

Optional

System.Management.Automation.SwitchParameter

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

DomainController

Optional

Microsoft.Rtc.Management.Deploy.Fqdn

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

Identity

Optional

Microsoft.Rtc.Management.AD.UserIdParameter

指定目標使用者的識別碼。可接受的值包括:

  • 使用者主體名稱 (UPN)

    範例:jphillips@contoso.com

  • SIPAddress

    範例:sip:jphillips@contoso.com

  • GUID

    範例:98403f08-577c-46dd-851a-f0460a13b03d

PassThru

Optional

System.Management.Automation.SwitchParameter

Including this switch enables you to pass a user object through the pipeline that represents the user account being assigned the voice routing policy. By default, the Grant-CsIPPhonePolicy cmdlet does not pass objects through the pipeline.

Tenant

Optional

System.Guid

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

WhatIf

Optional

System.Management.Automation.SwitchParameter

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

The Grant-CsIPPhonePolicy cmdlet accepts pipelined input of Microsoft.Rtc.Management.ADConnect.Schema.ADUser objects.

By default, the Grant-CsIPPhonePolicy cmdlet returns no objects or values. However, if you include the PassThru parameter, the cmdlet will return instances of the Microsoft.Rtc.Management.ADConnect.Schema.OCSUserOrAppContact object.

 
顯示: