Script repository
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.