Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prefered DC not set when exporting policies. #24

Open
eplantequebec opened this issue Sep 4, 2018 · 0 comments
Open

Prefered DC not set when exporting policies. #24

eplantequebec opened this issue Sep 4, 2018 · 0 comments

Comments

@eplantequebec
Copy link

eplantequebec commented Sep 4, 2018

When We started to export a Client Policy, some replication latency between DC caused a problem. After debugging, we fund that the Grant-CsClientPolicy don't use the variable $preferredDomainController to set the prefered DC.

So we change code to

if ($archivingPolicyChanged) { $cmd += " | Grant-CsArchivingPolicy -PolicyName '$archivingPolicy' -PassThru  -DomainController '$preferredDomainController'" }
if ($clientPolicyChanged) { $cmd += " | Grant-CsClientPolicy -PolicyName '$clientPolicy' -PassThru -DomainController '$preferredDomainController'" }
if ($clientVersionPolicyChanged) { $cmd += " | Grant-CsClientVersionPolicy -PolicyName '$clientVersionPolicy' -PassThru -DomainController '$preferredDomainController'" }
if ($conferencingPolicyChanged) { $cmd += " | Grant-CsClientVersionPolicy -PolicyName '$conferencingPolicy' -PassThru -DomainController '$preferredDomainController'" }
if ($dialPlanChanged) { $cmd += " | Grant-CsClientVersionPolicy -PolicyName '$dialPlan' -PassThru -DomainController '$preferredDomainController'" }
if ($externalAccessPolicyChanged) { $cmd += " | Grant-CsExternalAccessPolicy -PolicyName '$externalAccessPolicy' -PassThru -DomainController '$preferredDomainController'" }
if ($hostedVoicemailPolicyChanged) { $cmd += " | Grant-CsHostedVoicemailPolicy -PolicyName '$hostedVoicemailPolicy' -PassThru -DomainController '$preferredDomainController'" }
if ($locationPolicyChanged) { $cmd += " | Grant-CsLocationPolicy -PolicyName '$locationPolicy' -PassThru -DomainController '$preferredDomainController'" }
if ($pinPolicyChanged) { $cmd += " | Grant-CsPinPolicy -PolicyName '$pinPolicy' -PassThru -DomainController '$preferredDomainController'" }
if ($presencePolicyChanged) { $cmd += " | Grant-CsPresencePolicy -PolicyName '$presencePolicy' -PassThru -DomainController '$preferredDomainController'" }
if ($voicePolicyChanged) { $cmd += " | Grant-CsVoicePolicy -PolicyName '$voicePolicy' -PassThru -DomainController '$preferredDomainController'" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant