Get-CsNetworkConfiguration

 

Topic Last Modified: 2012-03-23

Retrieves global settings for call admission control (CAC), Enhanced 9-1-1 (E9-1-1), and media bypass.

Syntax

Get-CsNetworkConfiguration [-Identity <XdsIdentity>] [-LocalStore <SwitchParameter>]

Get-CsNetworkConfiguration [-Filter <String>] [-LocalStore <SwitchParameter>]

Detailed Description

The network configuration object contains all the global settings for media bypass and for an entire CAC configuration within a Microsoft Lync Server 2010 deployment, including whether or not that configuration has been enabled. You can use this cmdlet to retrieve these configurations and settings. However, other than EnableBandwidthPolicyCheck and MediaBypassSettings, it’s recommended that you use cmdlets specific to the object type for retrieving the CAC configuration settings. For example, to retrieve the network regions, it will usually be easier to call Get-CsNetworkRegion than to call Get-CsNetworkConfiguration and then retrieve the NetworkRegions property of that configuration.

Who can run this cmdlet: By default, members of the following groups are authorized to run the Get-CsNetworkConfiguration 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-CsNetworkConfiguration"}

Parameters

Parameter Required Type Description

Identity

Optional

XdsIdentity

This will always be Global.

Filter

Optional

String

Because there will only ever be one network configuration, you do not need this parameter for this cmdlet.

LocalStore

Optional

SwitchParameter

Retrieves the network configuration from the local replica of the Central Management store, rather than the Central Management store itself.

Input Types

None.

Return Types

Get-CsNetworkConfiguration returns an instance of the Microsoft.Rtc.Management.WritableConfig.Settings.NetworkConfiguration.NetworkConfigurationSettings object.

Example

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

Get-CsNetworkConfiguration

This example retrieves the network configuration settings. These settings are defined only at the global scope, so only one item will be returned.

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

(Get-CsNetworkConfiguration).MediaBypassSettings

Only one set of media bypass settings, which is applied globally, exists. These settings are stored as part of the overall network configuration. This command first retrieves that configuration by calling Get-CsNetworkConfiguration, and then retrieves the MediaBypassSettings property of the configuration.