Export (0) Print
Expand All
Expand Minimize

Get-CsLocationPolicy

 

Topic Last Modified: 2012-03-23

Returns information about how (or if) the Enhanced 9-1-1 (E9-1-1) Location Information service has been configured. The E9-1-1 service enables those who answer emergency calls to determine the caller’s geographic location.

Get-CsLocationPolicy [-Identity <XdsIdentity>] [-LocalStore <SwitchParameter>]
Get-CsLocationPolicy [-Filter <String>] [-LocalStore <SwitchParameter>]

The location policy is used to apply settings that relate to E9-1-1 functionality. The location policy determines whether a user is enabled for E9-1-1, and if so what the behavior is of an emergency call. For example, you can use the location policy to define what number constitutes an emergency call (911 in the United States), whether corporate security should be automatically notified, how the call should be routed, and so on. This cmdlet retrieves one or more location policies.

Who can run this cmdlet: By default, members of the following groups are authorized to run the Get-CsLocationPolicy cmdlet locally: RTCUniversalUserAdmins, RTCUniversalServerAdmins. To return a list of all the role-based access control (RBAC) roles this cmdlet has been assigned to (including any custom RBAC roles you have created yourself), run the following command from the Windows PowerShell prompt:

Get-CsAdminRole | Where-Object {$_.Cmdlets –match "Get-CsLocationPolicy"}

 

Parameter Required Type Description

Identity

Optional

XdsIdentity

The unique identifier of the location policy you want to retrieve. To retrieve the global location policy, use a value of Global. For a policy created at the site scope, this value will be in the form site:<site name>, where site name is the name of a site defined in the Microsoft Lync Server 2010 deployment (for example, site:Redmond). For a policy created at the per-user scope, this value will simply be the name of the policy, such as Reno.

Filter

Optional

String

A string containing wildcard characters that will retrieve location policies based on matching the Identity value of the policy to the wildcard string.

LocalStore

Optional

SwitchParameter

Retrieves the location policy information from the local replica of the Central Management store, rather than the Central Management store itself.

Get-CsLocationPolicy returns instances of the Microsoft.Rtc.Management.WritableConfig.Policy.Location.LocationPolicy object.

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

Get-CsLocationPolicy

Example 1 returns a collection of all the location policies currently in use in your organization. This is done simply by calling Get-CsLocationPolicy without any parameters.

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

Get-CsLocationPolicy -Identity Reno

The command shown in Example 2 returns only those location policies that have an Identity equal to Reno. Because identities must be unique, this command will only return, at most, one location policy.

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

Get-CsLocationPolicy -Filter tag:*

The preceding command uses the Filter parameter to return all the location policies that have been configured at the per-use scope. (Policies configured at the per-user scope can be directly assigned to users and network sites.) The wildcard string tag:* tells Get-CsLocationPolicy that the returned data should be limited to those location policies that have an Identity that begins with the string value tag:. Even though you don’t need to specify the tag: prefix when retrieving an individual policy, you can use that prefix to filter on all per-user policies.

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

Get-CsLocationPolicy | Where-Object {$_.EnhancedEmergencyServicesEnabled -eq $False}

Example 4 returns a collection of all the location policies where enhanced emergency services are disabled. To do this, the command first uses Get-CsLocationPolicy to return a collection of all the location policies currently in use in the organization. That collection is then piped to the Where-Object cmdlet; in turn, Where-Object applies a filter that limits the returned data to those policies where the EnhancedEmergencyServicesEnabled property is equal to (-eq) False ($False).

 
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft