03 PowerShell and admin
Pro tips
• Read with Get- before you Set- or Grant-.
• Set-CsTeamsCallingPolicy changes the policy object. Grant-CsTeamsCallingPolicy assigns that policy to a user.
• New-CsOnlineVoiceRoute needs a number pattern, an online PSTN gateway, and a PSTN usage, or the route never matches.
Interview traps
• Running Set-CsTeamsCallingPolicy against a user principal name and thinking the user changed.
• Pasting parameters from a screenshot without checking Get-Help in the module installed on that machine.
Cheat sheet
Get- read
New- create
Set- change the object
Grant- assign to a user
Remove- delete
Voice route pattern + gateway + usage
Calling policy the object. Grant assigns it.
Facts in the long lessons were checked 14 October 2026. This sheet is a memory aid.