CmdID / PowerShell / Cmdlets / Get
Get-CsTeamsExternalAccessConfiguration
This cmdlet returns the current settings of your organization. Microsoft Teams PowerShell reference
From the Microsoft Teams PowerShell reference 2 parameters Its page in the reference
Parameters
-FilterInternal Microsoft use.-IdentityThe only value accepted is Global