question

BoopathiSubramaniam-6294 avatar image
0 Votes"
BoopathiSubramaniam-6294 asked Pete-6360 commented

'Set-CsTeamsMeetingPolicy' is not recognized as the name of a cmdlet

Hi,

I need to get the Teams Meeting participant list. I posted in the below forum
https://social.technet.microsoft.com/Forums/en-US/1596142b-afba-431d-abdb-a8b6a1542b9f/how-to-capture-participant-list-in-a-meeting?forum=msteams

I am getting the 'Set-CsTeamsMeetingPolicy' is not recognized as the name of a cmdlet
19450-capture.jpg



I have installed Install-Module MicrosoftTeams module.
Please help on how to execute Set-CsTeamsMeetingPolicy -AllowEngagementReport enabled

windows-server-powershell
capture.jpg (40.8 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Pete-6360 avatar image
2 Votes"
Pete-6360 answered Pete-6360 commented

Finally worked this out in Feb 2021 on a Win 10 PC
PS C:\Users\administrator> Get-Module

ModuleType Version Name ExportedCommands


Script 1.0.0.0 ISE {Get-IseSnippet, Import-IseSnippet, New-IseSnippet}
Manifest 3.1.0.0 Microsoft.PowerShell.Management {Add-Computer, Add-Content, Checkpoint-Computer, Clear-Content...}
Manifest 3.1.0.0 Microsoft.PowerShell.Utility {Add-Member, Add-Type, Clear-Variable, Compare-Object...}

#Check local script policy


PS C:\Users\administrator> Get-ExecutionPolicy
Restricted

PS C:\Users\administrator> Set-ExecutionPolicy "Unrestricted"

PS C:\Users\administrator> Get-ExecutionPolicy
Unrestricted

PS C:\Users\administrator> import-module PowerShellGet


PS C:\Users\administrator> Install-Module MicrosoftTeams -AllowPrerelease
WARNING: Version '1.1.6' of module 'MicrosoftTeams' is already installed at 'C:\Program Files\WindowsPowerShell\Modules\MicrosoftTeams\1.1.6'. To install version '1.1.10-preview', run Install-Module and add the -Force parameter, this command will install version '1.1.10-preview' side-by-side with version '1.1.6'.

PS C:\Users\administrator> Install-Module MicrosoftTeams -AllowPrerelease -Force

PS C:\Users\administrator> Connect-MicrosoftTeams

Account Environment Tenant TenantId


email@xxxxxx AzureCloud

PS C:\Users\administrator> $session = New-CsOnlineSession

PS C:\Users\administrator> Import-PSSession $session

ModuleType Version Name ExportedCommands


Script 1.0 xxxxxxxxxxx xxxxxxxxxxxxxx




PS C:\Users\administrator> Get-InstalledModule

Version Name Repository Description


1.1.10-preview MicrosoftTeams PSGallery Microsoft Teams cmdlets module for Windows ...
1.4.7 PackageManagement PSGallery PackageManagement (a.k.a. OneGet) is a new ...
2.2.5 PowerShellGet PSGallery PowerShell module with commands for discove...



PS C:\Users\administrator> Set-CsTeamsMeetingPolicy -Identity Global -AllowEngagementReport "Enabled"

PS C:\Users\administrator> Get-CsTeamsMeetingPolicy


Identity : Global
Description :
AllowEngagementReport : Enabled


Identity : Tag:Primary or Secondary Educators and Staff - Meeting
Description : Recommended Meeting policies for Primary or Secondary faculty and staff
AllowEngagementReport : Enabled

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Curious, I've tried to run the command as you outlined, but -AllowPrerelease is not an existing parameter in my PowerShell:

PS C:\Windows\system32> Install-Module MicrosofTeams -AllowPrerelease -Force

Install-Module : A parameter cannot be found that matches parameter name 'AllowPrerelease'.
At line:1 char:30
+ Install-Module MicrosofTeams -AllowPrerelease -Force
+ ~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Install-Module], ParameterBindingException
+ FullyQualifiedErrorId : NamedParameterNotFound,Install-Module

0 Votes 0 ·

You will kick yourself!
Install-Module Microso*fT*eams -AllowPrerelease -Force

Try MicrosoftTeams !
:)


0 Votes 0 ·
RichMatheisen-8856 avatar image
0 Votes"
RichMatheisen-8856 answered

Did you read the documentation for that module?

The module you want is SkypeOnlineConnector.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

BoopathiSubramaniam-6294 avatar image
0 Votes"
BoopathiSubramaniam-6294 answered

Hi Rich Matheisen,

I need to send minutes of meeting with participants. There are 30 members join the meeting and I am unable to get all the attendees.
Please let me know how to get the list of participant in a meeting in Teams.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

RichMatheisen-8856 avatar image
0 Votes"
RichMatheisen-8856 answered RichMatheisen-8856 edited

During the meeting you can save the attendance list. After the meeting? Nope. At least not yet, but that's a limitation of Microsoft Teams, not PowerShell. Also, I don't now of a way to get the list during the meeting with PowerShell, but, again, that's a limitation of Microsoft Teams.
get-teams-meeting-attendee-list


33989875-view-or-export-a-list-of-users-who-attended-a-meet


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.