Forum Discussion
New-CsTeamsShiftsPolicy cmdlet does not exist using Teams powershell module version 1.1.6
- Nov 24, 2020
Hi Denise Child,
The cmdlets which have Cs in the name are part of the Skype for Business Powershell connector. Therefor you first need to setup a session to the connector. Can you try the following
$sfbSession = New-CsOnlineSession Import-PSSession $sfbSession -AllowClobber
The first command, will ask you to authenticate and the second command will import the session with all the cmdlets you need. You should now be able to use the New-CsTeamsShiftsPolicy in your PowerShell session.
Regards,
Ruud
Hi Denise Child,
The cmdlets which have Cs in the name are part of the Skype for Business Powershell connector. Therefor you first need to setup a session to the connector. Can you try the following
$sfbSession = New-CsOnlineSession
Import-PSSession $sfbSession -AllowClobber
The first command, will ask you to authenticate and the second command will import the session with all the cmdlets you need. You should now be able to use the New-CsTeamsShiftsPolicy in your PowerShell session.
Regards,
Ruud
- Denise ChildNov 24, 2020Iron Contributor
RuudGijsbers Thank you! That worked.
These two commands allowed me to create the new teams shifts policy.
Connect-MicrosoftTeams
$sfbSession = New-CsOnlineSession
Import-PSSession $sfbSession -AllowClobber