MC1338817 Microsoft Teams PowerShell: Web Account Manager (WAM) becomes the default authentication broker
Primary service: Teams
ChangePilot summary
- Microsoft Teams PowerShell on Windows will default to using Web Account Manager (WAM) for Connect-MicrosoftTeams sign-ins (interactive, -Credential, -AccountId/IWA).
- A temporary -DisableWAM parameter is available to bypass WAM for a single connection; it will be removed in a future release.
- Preview availability begins in the Teams PowerShell preview (v7.8.1); admins should review and update any scripts that run in non-interactive environments (services, scheduled tasks, automation).
- Sign-in methods not affected: service principal with certificate, managed identity, and pre-acquired access tokens.
What it means for you
What admins need to do
Inventory scripts and automation that call Connect-MicrosoftTeams on Windows and identify which run non-interactively (services, scheduled tasks, CI/CD agents). Test those scripts with preview v7.8.1 and validate authentication behavior. For non-interactive automation, update scripts to use supported non-interactive auth methods (service principal with certificate, managed identity, or pre-acquired access tokens) or modify execution to provide an interactive session where feasible. Use -DisableWAM as a temporary workaround during transition, but plan to remove reliance on it before it is deprecated. Update runbooks, notify script owners, and ensure Windows hosts meet supported versions (Windows 10 / Windows Server 2019 or later) where WAM is required.
Impact on users
Most end users will not notice any change. Admins and automation owners may see sign-in behavior change for Teams PowerShell on Windows; some scheduled or service-based scripts that rely on non-interactive sign-in could fail unless updated. If admins test and update automation, users will not be impacted.
If you miss it
If admins do not review and update scripts, non-interactive automation that uses Connect-MicrosoftTeams may break when the module defaults to WAM, causing failed maintenance jobs, reporting, or administrative automation. The temporary -DisableWAM parameter may provide a short-term workaround, but relying on it risks future disruption when it is removed. There are no direct compliance impacts noted.
- Admin controls available
- Yes
History
Recorded changes
No changes recorded since ChangePilot first saw this post.
Microsoft message
[What and Why]
We are updating the Microsoft Teams PowerShell module to use Web Account Manager (WAM) as the default authentication broker for sign-in. This change improves security and provides a more consistent authentication experience on Windows.
A new temporary parameter, -DisableWAM, is available in the Connect-MicrosoftTeams cmdlet, allowing admins to bypass WAM for a single connection if it is not supported in their environment.
This change is available starting with preview version 7.8.1 of the Teams PowerShell module.
[Rollout Schedule]
General Availability (Worldwide, GCC, GCCH, DoD): Rollout will begin in late June 2026 and is expected to complete in late June 2026.
[Impact on Your Organization]
Who is affected
- Admins using the Microsoft Teams PowerShell module on Windows
Platforms/Services
- Microsoft Teams PowerShell module
- Windows
What will happen
- Sign-in for the following scenarios will use WAM as the authentication broker:
- Interactive sign-in using Connect-MicrosoftTeams
- Connect-MicrosoftTeams with credential (-Credential)
- Connect-MicrosoftTeams with AccountId (-AccountId, Integrated Windows Authentication)
- The following sign-in methods are not affected:
- Service principal with certificate
- Managed identity
- Pre-acquired access tokens
- A temporary -DisableWAM parameter is available to bypass WAM for a single connection.
- The -DisableWAM parameter will be removed in a future release.
Known limitations:
- On macOS, Linux, and Windows versions earlier than Windows 10 or Windows Server 2019, existing authentication behavior remains unchanged.
- WAM requires an interactive Windows session with UI access.
- WAM will not work in non-interactive scenarios such as Windows services, scheduled tasks without a logged-in user, or scenarios that run under impersonation.
[Action Required / Recommendations]
- Review any scripts that use the Teams PowerShell module, especially those running in non-interactive environments.
- Update scripts if needed to support WAM authentication.
- Use the -DisableWAM parameter as a temporary workaround if required.
Learn more: Connect-MicrosoftTeams | Microsoft Teams | Microsoft Learn
[Compliance considerations]
No compliance considerations identified. Review as appropriate for your organization.
More information
Details
Platforms
- Windows
Services
- PowerShell
- Teams
- Windows
Category
- Plan for change
Microsoft tags
- Admin Action
- User Adoption