Get-CsMobilityPolicy

 

Topic Last Modified: 2017-05-17

ImportantImportant:
This only applies to Skype for Business Online and not to Skype for Business Server or Lync on-premises deployments.
ImportantImportant:
Please note that if your organization utilizes custom policies, then the UI will no longer correctly reflect the policy values. Once they are implemented they must continue to be managed via PowerShell.

Retrieves information about the mobility policies currently in use in an organization. Mobility policies determine whether or not a user can use Skype for Business app. These policies also manage a user's ability to employ Call via Work, a feature that enables users to make and receive phone calls on their mobile phone by using their work phone number instead of their mobile phone number. Mobility policies can also be used to require Wi-Fi connections when making or receiving calls.

Get-CsMobilityPolicy [-Identity <XdsIdentity>] <COMMON PARAMETERS>

Get-CsMobilityPolicy [-Filter <String>] <COMMON PARAMETERS>

The command shown in Example 1 returns information about all the mobility policies configured for use in your organization.

Get-CsMobilityPolicy

In Example 2, information is returned for all of your per-user mobility policies. To do this, the Filter parameter is included along with the filter value "tag:*"; this returns any policy that has an Identity that begins with the string value "tag:". By definition, any policy that has an identity beginning with that string value is a per-user policy.

Get-CsMobilityPolicy -Filter "tag:*"

The command shown in Example 3 limits the returned data to mobility policies where Call via Work has been disabled. To carry out this task, the command first calls the Get-CsMobilityPolicy cmdlet without any parameters; that returns a collection of all the mobility policies configured for use in the organization. This collection is then piped to the Where-Object cmdlet, which picks out only those policies where the EnableOutsideVoice property is equal to (-eq) False.

Get-CsMobilityPolicy | Where-Object {$_.EnableOutsideVoice -eq $False}

Skype for Business app is a application that enables users to run Skype for Business on their mobile devices. Call via Work provides a way for users to make calls on their mobile phone and yet have it appear as though the call originated from their work phone number instead of their mobile phone number. Users who have been enabled for Call via Work can achieve this either by dialing directly from their mobile phone or by using the dial-out conferencing option. With dial-out conferencing, a user effectively asks the to make a call for them. Skype for Business Online will set up the call, and then call the user back on their mobile phone. After the user has answered, Skype for Business Online will then dial the party being called. Both of these capabilities can be managed by using mobility policies.

WithSkype for Business Online, mobile devices can make or receive phone calls by using either the standard cellular phone network. or by using Wi-Fi connections. Mobility policies can be used to require Wi-Fi connections and to prevent calls over the cellular network.

Mobility policies can be configured at the per-user scope, and information about those policies can be retrieved by using the Get-CsMobilityPolicy cmdlet.

 

Parameter Required Type Description

Identity

Optional

Microsoft.Rtc.Management.Xds.XdsIdentity

Unique identifier of the mobility policy to be returned. To refer to the policy, use this syntax:

To refer to a per-user policy, use syntax similar to this:

-Identity SalesDepartmentPolicy

If this parameter is not specified, then the Get-CsMobilityPolicy cmdlet returns a collection of all the mobility policies in use in the organization.

The Get-CsMobilityPolicy cmdlet does not accept pipelined input.

The Get-CsMobilityPolicy cmdlet returns instances of the Microsoft.Rtc.Management.WriteableConfig.Policy.Mobility.Mobility object.

 
Show: