Written on 13/06/2020 15:08:48 URL: https://techwatching.dev/posts/teams-sso-powershell
Activity
TechWatching commentedon Oct 19, 2021
Comment written by Patrick Lemieux on 06/08/2020 20:28:02
Really Good article. Quick question... When I run the following command, I receive this error message :
$preAuthorizedApplications = New-Object 'System.Collections.Generic.List[Microsoft.Open.MSGraph.ModePreAuthorizedApplication]'
New-Object : Cannot find type [System.Collections.Generic.List[Microsoft.Open.MSGraph.ModePreAuthorizedApplication]]: verify that the assembly containing this type is loaded.
At line:1 char:30
+ ... lications = New-Object 'System.Collections.Generic.List[Microsoft.Ope ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidType: (:) [New-Object], PSArgumentException
+ FullyQualifiedErrorId : TypeNotFound,Microsoft.PowerShell.Commands.NewObjectCommand
Any idea why?
TechWatching commentedon Oct 19, 2021
Comment written by Alexandre on 06/08/2020 23:34:27
I guess it's because you did not install /import AzureAD module (see the final script https://github.com/TechWatc...
[-]Automate configuration of Teams Tab SSO with PowerShell.[/-][+]posts/teams-sso-powershell[/+]