LYNC2010 : Un petit script Powershell pour exporter la configuration


Voici un petit script pour Exporter la configuration d’un environnement Lync. Rien de très difficile me direz-vous mais du simple et efficace. A Copiez coller dans du Powershell Lync2010

Cordialement
Laurent Teruin

 

# General
md lync2010confex
cd lync2010confex
md gene
Get-CsAddressBookConfiguration | Fl >gene\get-csaddressBookConfiguration.txt
Get-CsArchivingConfiguration | fl >gene\Get-CsArchivingConfiguration.txt
Get-CsArchivingPolicy | fl >gene\Get-CsArchivingPolicy.txt
Get-CsCdrConfiguration | fl >gene\Get-CsCdrConfiguration.txt
Get-CsQoEConfiguration | fl >Gene\Get-CsQoEConfiguration.txt
Get-CsConfigurationStoreLocation | fl >gene\Get-CsConfigurationStoreLocation.txt
Get-CsUserDatabaseState >gene\Get-CsUserDatabaseState.txt
Get-CsRegistrarConfiguration >gene\Get-CsRegistrarConfiguration.txt
Get-CsService >gene\Get-CsService.txt
Get-CsWindowsService | fl >gene\Get-CsWindowsService.txt
Get-CsAudioTestServiceApplication >Gene\Get-CsAudioTestServiceApplication.txt
Get-CsHealthMonitoringConfiguration >gene\Get-CsHealthMonitoringConfiguration.txt
Get-CsDiagnosticConfiguration >gene\Get-CsDiagnosticConfiguration.txt

#Web Server and Services Cmdlets
md webconf
Get-CsSimpleUrlConfiguration | fl >webconf\Get-CsSimpleUrlConfiguration.txt
Get-CsWebServiceConfiguration | fl >webconf\Get-CsWebServiceConfiguration.txt
Get-CsKerberosAccountAssignment | fl >webconf\Get-CsKerberosAccountAssignment.txt

# Apps
md apps
Get-CsApplicationEndpoint | fl >apps\Get-CsApplicationEndpoint.txt
Get-CsServerApplication | fl >apps\Get-CsServerApplication.txt
Get-CsTrustedApplication | fl >apps\Get-CsTrustedApplication.txt
Get-CsTrustedApplicationComputer | fl >apps\Get-CsTrustedApplicationComputer.txt
Get-CsTrustedApplicationPool | fl >apps\Get-CsTrustedApplicationPool.txt

#Fed-ext
md fedex
Get-CsAllowedDomain | fl >fedex\Get-CsAllowedDomain.txt
Get-CsBlockedDomain | fl >fedex\Get-CsBlockedDomain.txt
Get-CsExternalAccessPolicy | fl >fedex\Get-CsExternalAccessPolicy.txt
Get-CsHostingProvider | fl >fedex\Get-CsHostingProvider.txt
Get-CsPublicProvider | fl >fedex\Get-CsPublicProvider.txt

#voice Troubleshooting Enterprise Voice Cmdlets
md voice
Get-CsVoiceConfiguration | fl >voice\Get-CsVoiceConfiguration.txt
Get-CsVoiceTestConfiguration | fl >voice\Get-CsVoiceTestConfiguration.txt
Get-CsVoiceNormalizationRule | fl >voice\Get-CsVoiceNormalizationRule.txt
Get-CsDialPlan | fl >voice\Get-CsDialPlan.txt
Get-CsPstnUsage | fl >voice\Get-CsPstnUsage.txt
Get-CsVoicePolicy | fl >voice\Get-CsVoicePolicy.txt
Get-CsRoutingConfiguration | fl >voice\Get-CsRoutingConfiguration.txt
Get-CsVoiceRoute | fl >voice\Get-CsVoiceRoute.txt
Get-CsPstnUsage | fl >voice\Get-CsPstnUsage.txt

#Voice Application Cmdlets
md voiceapp
Get-CsCallParkOrbit | fl >voiceapp\Get-CsCallParkOrbit.txt
Get-CsCpsConfiguration| fl >voiceapp\Get-CsCpsConfiguration.txt

#Exchange UM
md um
Get-CsExUmContact| fl >um\Get-CsExUmContact.txt
Get-CsHostedVoicemailPolicy | fl >um\Get-CsHostedVoicemailPolicy.txt
Get-CsVoicemailReroutingConfiguration | fl >um\Get-CsVoicemailReroutingConfiguration.txt

#Response Group Application
md responsegrp
Get-CsRgsAgentGroup | fl >responsegrp\Get-CsRgsAgentGroup.txt
Get-CsRgsConfiguration | fl >responsegrp\Get-CsRgsConfiguration.txt
Get-CsService -ApplicationServer | Where-Object {$_.Applications -contains « urn:application:RGS »} | ForEach-Object {Get-CsRgsConfiguration -Identity $_.Identity} | fl >responsegrp\Get-CsRgsHolidaySet.txt
Get-CsRgsHoursOfBusiness | fl >responsegrp\Get-CsRgsHoursOfBusiness.txt
Get-CsRgsQueue | fl >responsegrp\Get-CsRgsQueue.txt
Get-CsRgsWorkflow | fl >responsegrp\Get-CsRgsWorkflow.txt

#Unassigned Number
md UnassignedNum
Get-CsUnassignedNumber | fl >UnassignedNum\Get-CsUnassignedNumber.txt
Get-CsAnnouncement | fl >UnassignedNum\Get-CsAnnouncement.txt

#Admission Control
md cac
Get-CsBandwidthPolicyServiceConfiguration | fl >cac\Get-CsBandwidthPolicyServiceConfiguration.txt
Get-CsNetworkBandwidthPolicyProfile | fl >cac\Get-CsNetworkBandwidthPolicyProfile.txt
Get-CsNetworkConfiguration | fl >cac\Get-CsNetworkConfiguration.txt
Get-CsNetworkInterRegionRoute | fl >cac\Get-CsNetworkInterRegionRoute.txt
Get-CsNetworkInterSitePolicy | fl >cac\Get-CsNetworkInterSitePolicy.txt
Get-CsNetworkRegion | fl >cac\Get-CsNetworkRegion.txt
Get-CsNetworkRegionLink | fl >cac\Get-CsNetworkRegionLink.txt
Get-CsNetworkSite | fl >cac\Get-CsNetworkSite.txt
Get-CsNetworkSubnet | fl >cac\Get-CsNetworkSubnet.txt

#Media Bypass
md mediabypass
Get-CsNetworkConfiguration | fl >mediabypass\Get-CsNetworkConfiguration.txt
Get-CsMediaConfiguration| fl >mediabypass\Get-CsMediaConfiguration.txt

#Static Routing
md StaticRouting
Get-CsSipResponseCodeTranslationRule | fl >StaticRouting\Get-CsSipResponseCodeTranslationRule.txt
Get-CsStaticRoutingConfiguration | fl >StaticRouting\Get-CsStaticRoutingConfiguration.txt

#Trunking Configuration
md trunk
Get-CsOutboundTranslationRule | fl >Trunk\Get-CsOutboundTranslationRule.txt
Get-CsTrunkConfiguration | fl >Trunk\Get-CsTrunkConfiguration.txt

#Voice Routing
md voicerouting
Get-CsRoutingConfiguration | fl >voicerouting\Get-CsRoutingConfiguration.txt
Get-CsVoiceRoute | fl >voicerouting\Get-CsVoiceRoute.txt
Get-CsPstnUsage | fl >voicerouting\Get-CsPstnUsage.txt

#PhoneDevic
md PhoneDevic
Get-CsAnalogDevice | fl >PhoneDevic\Get-CsAnalogDevice.txt
Get-CsCommonAreaPhone | fl >PhoneDevic\Get-CsCommonAreaPhone.txt
Get-CsUCPhoneConfiguration | fl >PhoneDevic\Get-CsUCPhoneConfiguration.txt
Get-CsDeviceUpdateConfiguration | fl >PhoneDevic\Get-CsDeviceUpdateConfiguration.txt
Get-CsDeviceUpdateRule | fl >PhoneDevic\Get-CsDeviceUpdateRule.txt
Get-CsTestDevice | fl >PhoneDevic\Get-CsTestDevice.txt

#Lync Management
md Management
Get-CsUICulture | fl >Managment\Get-CsUICulture.txt
Get-CsManagementConnection | fl >Managment\Get-CsManagementConnection.txt

#users
md users
Get-csuser| fl >users\Get-Csuser.txt

Votre commentaire

Choisissez une méthode de connexion pour poster votre commentaire:

Logo WordPress.com

Vous commentez à l’aide de votre compte WordPress.com. Déconnexion /  Changer )

Photo Google

Vous commentez à l’aide de votre compte Google. Déconnexion /  Changer )

Image Twitter

Vous commentez à l’aide de votre compte Twitter. Déconnexion /  Changer )

Photo Facebook

Vous commentez à l’aide de votre compte Facebook. Déconnexion /  Changer )

Connexion à %s