Teams Powershell Issues : The term 'Get-CsTeamsMeetingPolicy' is not recognized as the name of a cmdlet
PS
C:\WINDOWS\system32> Get-CsTeamsMeetingPolicy
Get-CsTeamsMeetingPolicy
: The term 'Get-CsTeamsMeetingPolicy' is not recognized as the name of a
cmdlet, function,
script
file, or operable program. Check the spelling of the name, or if a path was
included, verify that the path is
correct
and try again.
At
line:1 char:1
+
Get-CsTeamsMeetingPolicy
+
~~~~~~~~~~~~~~~~~~~~~~~~
+
CategoryInfo :
ObjectNotFound: (Get-CsTeamsMeetingPolicy:String) [], CommandNotFoundException
PS
C:\WINDOWS\system32> $sfbSession = New-CsOnlineSession
Please enter the user principal name (ex. User@Domain.Com): a@no.onmicrosoft.com
New-PSSession
: [admin2e.online.lync.com] Connecting to remote server admin2e.online.lync.com
failed with the
following
error message : The WinRM client cannot process the request. Basic
authentication is currently disabled in
the
client configuration. Change the client configuration and try the request
again. For more information, see the
about_Remote_Troubleshooting
Help topic.
At
C:\Program Files\Common Files\Skype for Business
Online\Modules\SkypeOnlineConnector\SkypeOnlineConnectorStartup.psm1:254
char:16
Set-ExecutionPolicy unrestricted
Import-Module "C:\\Program Files\\Common Files\\Skype
for Business
Online\\Modules\\SkypeOnlineConnector\\SkypeOnlineConnector.psd1"
winrm set winrm/config/client/auth '@{Basic="True"}'
$session = New-CsOnlineSession -Credential $cred
Import-PSSession $session
Get-CsTeamsMeetingPolicy
More information :
https://techcommunity.microsoft.com/t5/microsoft-teams/meeting-attendance-list/m-p/1327910
https://www.cloudfronts.com/microsoft-teams-powershell-module-overview/
http://kressmark.blogspot.com/2019/10/powershell-for-teams-management.html
Comments
Post a Comment