Script repository

Assign Conferencing policy in Skype for Business on-premises

Updated on: Jan 18, 2026, Views: 4480

Skype for Business

The script assigns Conferencing policy in Skype for Business on-premises. To execute the script, create a business rule, custom command or scheduled task configured for the User object type.

To be able to assign a policy, the Adaxes service account must be assigned the CsUserAdministrator role or the CsAdministrator role in Skype for Business.

Parameters

  • $lyncServer - the fully-qualified domain name (FQDN) of the Skype for Business server.
  • $policyName - the name of the Conferencing policy to assign.
$lyncServer = "lyncserver.domain.com" # TODO: Modify me
$policyName = "SalesConferencingPolicy" # TODO: Modify me

$sessionOptions = New-PSSessionOption -SkipRevocationCheck -SkipCACheck -SkipCNCheck
$session = New-PSSession -ConnectionUri https://$lyncServer/ocspowershell `
    -SessionOption $sessionOptions -Authentication NegotiateWithImplicitCredential

Import-PSSession -session $session

Grant-CsConferencingPolicy -identity "%userPrincipalName%" -PolicyName $policyName

Remove-PSSession -Session $session

Comments 0

You must be signed in to comment.

    Got questions?

    Support Questions & Answers

    We use cookies to improve your experience.
    By your continued use of this site you accept such use.
    For more details please see our privacy policy and cookies policy.