UCLobby Teams PowerShell Module

The module is available in the PowerShell Gallery:
PowerShell Gallery – UCLobbyTeams

Source code available in GitHub:
GitHub – UCLobbyTeams

Get-UcTeamsVersion

Syntax

Get-UcTeamsVersion
[<CommonParameters>]

Description

The Get-UcTeamsVersion returns the installed Microsoft Teams desktop version for each user profile.

Blog post: Teams: Check client version using PowerShell

Example

Get-UcTeamsVersion

Get-UcM365TenantId

Syntax

Get-UcM365TenantId
-Domain
[<CommonParameters>]

Description

This function returns the Tenant ID associated with a domain that is part of a Microsoft 365 Tenant.

Example

Get-UcM365TenantId -Domain uclobby.com

Get-UcTeamsForest

Syntax

Get-UcTeamsForest
-Domain
[<CommonParameters>]

Description

This function returns the forest for a SIP enabled domain.

Blog post: Get-UcTeamsForest

Example

Get-UcTeamsForest -Domain uclobby.com

Get-UcM365Domains

Syntax

Get-UcM365Domains
-Domain
[<CommonParameters>]

Description

This function returns a list of domains that are associated and validated with a Microsoft 365 Tenant.

Example

Get-UcM365Domains -Domain uclobby.com

Test-UcTeamsOnlyModeReadiness

Syntax

Test-UcTeamsOnlyModeReadiness
[-Domain]
[<CommonParameters>]

Description

If we specify the Domain the cmdlet will query all domains associated to the tenant that domain belongs and check one by one.

If the Domain parameter is not specified, it will use the Get-CsSipDomain. This requires that you already connected using Microsoft Teams PowerShell module using Connect-MicrosoftTeams.

Blog Post: Test-UcTeamsOnlyModeReadiness

Examples

Test-UcTeamsOnlyModeReadiness
Test-UcTeamsOnlyModeReadiness -Domain uclobby.com

Get-UcArch

Syntax

Get-UcArch
-FilePath
[<CommonParameters>]

Description

Based on PowerShell script Get-ExecutableType.ps1 by David Wyatt that was originally posted in:

Identify 16-bit, 32-bit and 64-bit executables with PowerShell
https://gallery.technet.microsoft.com/scriptcenter/Identify-16-bit-32-bit-and-522eae75

Example

Get-UcArch -FilePath "C:\Windows\System32\notepad.exe"

Get-UcTeamUsersEmail

Syntax

Get-UcTeamUsersEmail
-TeamName
-Role
[<CommonParameters>]

Description

This function returns a list of users email address that are part of a Team.

If no parameter is specified it will return all users from all teams.

We can also search by team name and which role we want to filter.

Role is limited to Owner, User and Guest.

Example

Get-UcTeamUsersEmail
Get-UcTeamUsersEmail -TeamName "Test Team"
Get-UcTeamUsersEmail -Role Owner

Get-UcTeamsWithSingleOwner

Syntax

Get-UcTeamsWithSingleOwner
[<CommonParameters>]

Description

This function returns a list of Teams that only have a single owner.

Example

Get-UcTeamsWithSingleOwner

Get-UcTeamsDevice

Syntax

Get-UcTeamsDevice
-Filter
-Detailed
[<CommonParameters>]

Description

This function fetch Teams Devices provisioned in a M365 Tenant using MS Graph.

Contributors: David Paulino, Silvio Schanz, Gonçalo Sepulveda and Bryan Kendrick

Requirements

  • Microsoft Graph PowerShell Module (Install-Module Microsoft.Graph)
  • Microsoft Graph Scopes:
    • TeamworkDevice.Read.All
    • User.Read.All

Parameters

  • Filter
    •     Phone – Teams Native Phones
    •     MTR – Microsoft Teams Rooms running Windows or Android
    •     MTRW – Microsoft Teams Room Running Windows
    •     MTRA – Microsoft Teams Room Running Android
    •     SurfaceHub – Surface Hub
    •     Display – Microsoft Teams Displays
    •     Panel – Microsoft Teams Panels
  • Detailed – When present it will get detailed information from Teams Devices

Example

Get-UcTeamsDevice
Get-UcTeamsDevice -Filter MTR
Get-UcTeamsDevice -Detailed

Test-UcTeamsDevicesConditionalAccessPolicy

Syntax

Test-UcTeamsDevicesConditionalAccessPolicy
-Detailed
[<CommonParameters>]

Description

This function will validate each setting in a Conditional Access Policy to make sure they are in line with the supported settings:

Teams Android Devices – Supported Conditional Access policies

Contributors: Traci Herr, David Paulino

More info:

UCMESS: How to Check Conditional Access Policies unsupported settings for the Teams Android Devices

Requirements

  • Microsoft Graph PowerShell Module (Install-Module Microsoft.Graph)
  • Microsoft Graph Scopes:
    • Policy.Read.All

Parameters

  • Detailed – When present it will get detailed configuration information from Condicional Access policy

Example

Test-UcTeamsDevicesConditionalAccessPolicy
Test-UcTeamsDevicesConditionalAccessPolicy -Detailed

Test-UcTeamsDevicesCompliancePolicy

Syntax

Test-UcTeamsDevicesCompliancePolicy
-Detailed
[<CommonParameters>]

Description

This function will validate each setting in the Intune Compliance Policy to make sure they are in line with the supported settings:

Teams Android Devices – Supported Intune Compliance policies

Contributors: Traci Herr, David Paulino

UCMESS: Checking Intune Compliance Policies for unsupported settings

Requirements

  • Microsoft Graph PowerShell Module (Install-Module Microsoft.Graph)
  • Microsoft Graph Scopes:
    • DeviceManagementConfiguration.Read.All

Parameters

  • Detailed – When present it will get detailed configuration information from Intune Compliance policy

Example

Test-UcTeamsDevicesCompliancePolicy
Test-UcTeamsDevicesCompliancePolicy -Detailed

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.