Freigeben über


Lync Server Admin Guide: Configuring Your Network

This article is part of the Microsoft Lync Server 2010 Administration Guide: PowerShell Supplement.

Enabling Call Admission Control

  • To enable CAC

To enable Call Admission Control, use the Set-CsNetworkConfiguration cmdlet and set the EnableBandwidthPolicyCheck parameter to True:

Set-CsNetworkConfiguration –Identity global –EnableBandwidthPolicyCheck $True

 

To disable Call Admission Control, set the EnableBandwidthPolicyCheck parameter to False:

 

Set-CsNetworkConfiguration –Identity global –EnableBandwidthPolicyCheck $False

 

For more information

 

 

 

Enabling Media Bypass

  • To enable and configure media bypass

To enable media bypass for Call Admission Control, you must first use the Get-CsNetworkConfiguration cmdlet to create an object reference to your current media bypass settings. You can modify those bypass settings in memory, then use the Set-CsNetworkConfiguration cmdlet to write the changes to Lync Server:

$x = (Get-CsNetworkConfiguration).MediaBypassSettings

$x.AlwaysBypass = $True

$x.Enabled = $True

$x.InternalBypassMode = "Any"

Set-CsNetworkConfiguration -MediaBypassSettings $x

 

A similar process is used to disable media bypass for Call Admission Control:

 

$x = (Get-CsNetworkConfiguration).MediaBypassSettings

$x.AlwaysBypass = $False

$x.Enabled = $False

$x.InternalBypassMode = $Null

Set-CsNetworkConfiguration -MediaBypassSettings $x

 

For more information

Configuring Location Policy

  • To view location policies

To view all your location policies, use the Set-CsLocationPolicy cmdlet:

Get-CsLocationPolicy

 

This command retrieves all the location policies configured at the site scope:

 

Get-CsLocationPolicy –Filter "site:*"

 

And this command retrieves the specified per-user location policy:

 

Get-CsLocationPolicy –Identity "RedmondLocationPolicy"

 

  • To create a new location policy

To create a new location policy, use the New-CsLocationPolicy cmdlet:

New-CsLocationPolicy -Identity site:Redmond -EnhancedEmergencyServicesEnabled $True

 

Location policies can be created at either the site or the per-user scope.

 

  • To modify a location policy

To modify a location policy, use the Set-CsLocationPolicy cmdlet:

Set-CsLocationPolicy -Identity site:Redmond -EnhancedEmergencyServicesEnabled $False

 

 

  • To delete a location policy

To delete a location policy, use the Remove-CsLocationPolicy cmdlet:

Remove-CsLocationPolicy -Identity site:Redmond

 

The following command removes all the location policies configured at the site scope:

 

Get-CsLocationPolicy –Filter "site:*" | Remove-CsLocationPolicy

 

And this command removes all the location policies configured at the per-user scope:

 

Get-CsLocationPolicy –Filter "tag:*" | Remove-CsLocationPolicy

 

 

For more information

Configuring Bandwidth Policy Profile

  • To create a new bandwidth policy profile

To create a new bandwidth policy profile use the New-CsNetworkBandwidthPolicyProfile cmdlet:

New-CsNetworkBandwidthPolicyProfile -Identity LowBWLimits -AudioBWLimit 2000 -AudioBWSessionLimit 200 -VideoBWLimit 1400 -VideoBWSessionLimit 500

 

  • To modify a bandwidth policy profile

To modify a bandwidth policy profile, use the Set-CsNetworkBandwidthPolicyProfile cmdlet:

Set-CsNetworkBandwidthPolicyProfile -Identity LowBWLimits -AudioBWLimit 1000

  • To delete a bandwidth policy profile

To delete a bandwidth policy profile, use the Remove-CsNetworkBandwidthPolicyProfile cmdlet:

Remove-CsNetworkBandwidthPolicyProfile -Identity LowBWLimits

 

This command deletes all your bandwidth policy profiles:

 

Get-CsNetworkBandwidthPolicyProfile | Remove-CsNetworkBandwidthPolicyProfile 

 

 

For more information

Configuring Network Regions

  • To create a network region

To create a network region use the New-CsNetworkRegion cmdlet. Note that each new region must be associated with a central site:

New-CsNetworkRegion -Identity NorthAmerica -Description "All North American Locations" -CentralSite Redmond-NA-MLS -AudioAlternatePath $False -VideoAlternatePath $False

 

  • To modify a network region

To modify an existing network region, use the Set-CsNetworkRegion cmdlet:

Set-CsNetworkRegion -Identity EMEA -VideoAlternatePath $False

 

  • To delete a network region

To remove a network region, use the Remove-CsNetworkRegion cmdlet:

Remove-CsNetworkRegion -Identity NorthAmerica

 

This command removes all the network regions configured for use in your organization:

 

Get-CsNetworkRegion | Remove-CsNetworkRegion

 

And this command removes all the network regions associated with the Redmond central site:

 

Get-CsNetworkRegion | Where-Object {$_.CentralSite -eq "site:Redmond"} | Remove-CsNetworkRegion

 

For more information

Configuring Network Sites

  • To create a network site

To create a new network site, use the New-CsNetworkSite cmdlet:

New-CsNetworkSite -Identity Paris -NetworkRegionID EMEA -BWPolicyProfileID LowBWLimits

 

  • To modify a network site

To modify an existing network site, use the Set-CsNetworkSite cmdlet:

Set-CsNetworkSite -Identity Vancouver -BWPolicyProfileID LowBWLimits

 

  • To delete a network site

To remove a network site, use the Remove-CsNetworkSite cmdlet:

Remove-CsNetworkSite -Identity Vancouver

 

This command removes all the network sites configured for use in your organization:

 

Get-CsNetworkSite | Remove-CsNetworkSite

 

And this one removes all the network sites associated with the Northwest region:

 

Get-CsNetworkSite | Where-Object {$_.NetworkRegionID –eq "Northwest"} | Remove-CsNetworkSite

 

For more information

Configuring Network Subnets

  • To create a network subnet

To create a new network subnet, use the New-CsNetworkSubnet cmdlet:

 

New-CsNetworkSubnet -Identity 172.11.15.0 -MaskBits 24 -NetworkSiteID Vancouver

 

  • To modify a network subnet

To modify a network subnet, use the Set-CsNetworkSubnet cmdlet:

Set-CsNetworkSubnet -Identity 172.11.15.0 -MaskBits 25 -NetworkSiteID Chicago

  • To delete a network subnet

To delete a network subnet, use the Remove-CsNetworkSubnet cmdlet:

Remove-CsNetworkSubnet -Identity 172.11.15.0

 

To delete all your subnets, use this command:

 

Get-CsNetworkSubnet | Remove-CsNetworkSubnet

 

Or use this command to delete all the subnets on the network segment 192.168.*.*:

 

Get-CsNetworkSubnet –Filter "192.168.*" | Remove-CsNetworkSubnet

 

 

For more information

Configuring Network Region Links

  • To create a network region link

To create a new network region link, use the New-CsNetworkRegionLink cmdlet, specifying the two regions to be connected by the link. Note that it does not matter which region is listed as NetworkRegionID1 and which region is listed as NetworkRegionID2:

 

New-CsNetworkRegionLink -Identity NA_EMEA -NetworkRegionID1 NorthAmerica -NetworkRegionID2 EMEA -BWPolicyProfileID LowBWLimits

 

  • To modify a network region link

To modify a network region link, use the Set-CsNetworkRegionLink cmdlet:

Set-CsNetworkRegionLink -Identity NA_EMEA -BWPolicyProfileID HighBWLimits

 

  • To delete a network region link

To delete a network region link use the Remove-CsNetworkRegionLink cmdlet:

Remove-CsNetworkRegionLink -Identity NA_EMEA

 

This command removes all the network region links configured for use in your organization:

 

Get-CsNetworkRegionLink | Remove-CsNetworkRegionLink

 

 

For more information

 

 

 

 

Configuring Network Region Routes

  • To create a network region route

To create a new network region route, use the New-CsNetworkInterRegionRoute cmdlet, specifying the two regions to be connected by the route. Note that it does not matter which region is listed as NetworkRegionID1 and which region is listed as NetworkRegionID2:

New-CsNetworkInterRegionRoute -Identity NA_APAC_Route -NetworkRegionID1 NorthAmerica -NetworkRegionID2 APAC -NetworkRegionLinkIDs "NA_EMEA,EMEA_APAC"

 

  • To modify a network region route

To modify a network region route, use the Set-CsNetworkInterRegionRoute cmdlet:

Set-CsNetworkInterRegionRoute -Identity NA_APAC_Route -NetworkRegionLinkIDs "NA_SA,SA_APAC"

 

  • To delete a network region route

To remove a network region route, use the Remove-CsNetworkInterRegionRoute cmdlet:

Remove-CsNetworkInterRegionRoute -Identity NA_APAC_Route

This command removes all the network region routes configured for use in your organization:

Get-CsNetworkInterRegionRoute | Remove-CsNetworkInterRegionRoute

And this one removes all the region routes associated with the NorthAmerica region:

Get-CsNetworkInterRegionRoute | Where-Object {$_.NetworkRegionID1 -eq "NorthAmerica" -or $_.NetworkRegionID2 -eq "NorthAmerica"} | Remove-CsNetworkInterRegionRoute

 

 

For more information