Posh-MSAL
5.0.1
PowerShell cmdlets wrapping MSAL.NET (Microsoft.Identity.Client) to acquire tokens from Microsoft Entra ID in the public and sovereign clouds.
Minimum PowerShell version
5.1
Installation Options
Owners
Copyright
(c) 2026 Lucas Cueff. Based on MSAL.PS, (c) 2021 Jason Thompson, MIT License.
Package Details
Author(s)
- MS-LUF
Tags
MSAL Microsoft.Identity.Client EntraID AzureAD SovereignCloud BleuCloud Windows Linux
Functions
Add-MsalClientApplication Add-MsalEnvironment Clear-MsalTokenCache Enable-MsalTokenCacheOnDisk Get-MsalAccount Get-MsalClientApplication Get-MsalEnvironment Get-MsalFeatureSupport Get-MsalToken New-MsalClientApplication Remove-MsalClientApplication Remove-MsalEnvironment Select-MsalClientApplication Set-MsalEnvironment
PSEditions
Dependencies
This module has no dependencies.
Release Notes
5.0.0: first Posh-MSAL release: MSAL.NET 4.92, Linux, public and sovereign clouds (-Environment, *-MsalEnvironment), encrypted token cache on disk on Windows and Linux.
FileList
- Posh-MSAL.nuspec
- config.json
- HowTo.md
- License.txt
- Posh-MSAL.psd1
- Posh-MSAL.psm1
- README.md
- build\MsalDependency.csproj
- build\Restore-MsalDependency.ps1
- build\Update-MsalDependency.ps1
- Data\MsalDependency.psd1
- Data\MsalEnvironment.psd1
- Docs\Add-MsalClientApplication.md
- Docs\Add-MsalEnvironment.md
- Docs\Clear-MsalTokenCache.md
- Docs\Enable-MsalTokenCacheOnDisk.md
- Docs\Get-MsalAccount.md
- Docs\Get-MsalClientApplication.md
- Docs\Get-MsalEnvironment.md
- Docs\Get-MsalFeatureSupport.md
- Docs\Get-MsalToken.md
- Docs\New-MsalClientApplication.md
- Docs\Posh-MSAL.md
- Docs\Remove-MsalClientApplication.md
- Docs\Remove-MsalEnvironment.md
- Docs\Select-MsalClientApplication.md
- Docs\Set-MsalEnvironment.md
- en-US\Posh-MSAL-help.xml
- lib\net472\Microsoft.Bcl.AsyncInterfaces.dll
- lib\net472\Microsoft.Identity.Client.Broker.dll
- lib\net472\Microsoft.Identity.Client.dll
- lib\net472\Microsoft.Identity.Client.Extensions.Msal.dll
- lib\net472\Microsoft.Identity.Client.NativeInterop.dll
- lib\net472\Microsoft.IdentityModel.Abstractions.dll
- lib\net472\System.Buffers.dll
- lib\net472\System.Diagnostics.DiagnosticSource.dll
- lib\net472\System.Formats.Asn1.dll
- lib\net472\System.IO.FileSystem.AccessControl.dll
- lib\net472\System.Memory.dll
- lib\net472\System.Numerics.Vectors.dll
- lib\net472\System.Runtime.CompilerServices.Unsafe.dll
- lib\net472\System.Security.AccessControl.dll
- lib\net472\System.Security.Cryptography.ProtectedData.dll
- lib\net472\System.Security.Principal.Windows.dll
- lib\net472\System.Text.Encodings.Web.dll
- lib\net472\System.Text.Json.dll
- lib\net472\System.Threading.Tasks.Extensions.dll
- lib\net472\System.ValueTuple.dll
- lib\net472\runtimes\win-arm64\native\msalruntime_arm64.dll
- lib\net472\runtimes\win-x64\native\msalruntime.dll
- lib\net472\runtimes\win-x86\native\msalruntime_x86.dll
- lib\net8.0\Microsoft.Identity.Client.Broker.dll
- lib\net8.0\Microsoft.Identity.Client.dll
- lib\net8.0\Microsoft.Identity.Client.Extensions.Msal.dll
- lib\net8.0\Microsoft.Identity.Client.NativeInterop.dll
- lib\net8.0\Microsoft.IdentityModel.Abstractions.dll
- lib\net8.0\System.Security.Cryptography.ProtectedData.dll
- lib\net8.0\runtimes\win-arm64\native\msalruntime_arm64.dll
- lib\net8.0\runtimes\win-x64\native\msalruntime.dll
- lib\net8.0\runtimes\win-x86\native\msalruntime_x86.dll
- Private\Application\Test-MsalApplicationMatch.ps1
- Private\Assembly\Find-MsalLoadedAssembly.ps1
- Private\Assembly\Import-MsalAssembly.ps1
- Private\Assembly\Register-MsalAssemblyResolver.ps1
- Private\Assembly\Resolve-MsalAssemblyLoadError.ps1
- Private\Cache\Get-MsalCacheHelper.ps1
- Private\Cache\Get-MsalCacheStorageProperty.ps1
- Private\Cache\Import-MsalLegacyTokenCache.ps1
- Private\Cache\New-MsalCacheHelper.ps1
- Private\Config\Export-MsalConfig.ps1
- Private\Config\Import-MsalConfig.ps1
- Private\Config\Set-MsalConfig.ps1
- Private\Environment\ConvertTo-MsalEnvironment.ps1
- Private\Environment\Export-MsalEnvironment.ps1
- Private\Environment\Get-MsalEnvironmentByName.ps1
- Private\Environment\Import-MsalEnvironment.ps1
- Private\Environment\Resolve-MsalEnvironment.ps1
- Private\Flow\Add-MsalRequestOption.ps1
- Private\Flow\Get-MsalAuthorizationCodeRequest.ps1
- Private\Flow\Get-MsalClientAssertionCallback.ps1
- Private\Flow\Get-MsalClientCredentialRequest.ps1
- Private\Flow\Get-MsalDeviceCodeCallback.ps1
- Private\Flow\Get-MsalDeviceCodeRequest.ps1
- Private\Flow\Get-MsalIntegratedWindowsAuthRequest.ps1
- Private\Flow\Get-MsalInteractiveRequest.ps1
- Private\Flow\Get-MsalOnBehalfOfRequest.ps1
- Private\Flow\Get-MsalSilentRequest.ps1
- Private\Flow\Get-MsalUsernamePasswordRequest.ps1
- Private\Flow\Resolve-MsalTokenFlow.ps1
- Private\Flow\Test-MsalMissingScope.ps1
- Private\Flow\Write-MsalDeviceCodeMessage.ps1
- Private\Msal\Invoke-MsalRequest.ps1
- Private\Utility\Assert-MsalDirectory.ps1
- Private\Utility\ConvertFrom-MsalSecureString.ps1
- Private\Utility\ConvertTo-MsalDictionary.ps1
- Private\Utility\ConvertTo-MsalExtraQueryParameter.ps1
- Private\Utility\Get-MsalObjectPropertyValue.ps1
- Private\Utility\Select-MsalBoundParameter.ps1
- Private\Utility\Write-MsalHostPrompt.ps1
- Public\Add-MsalClientApplication.ps1
- Public\Add-MsalEnvironment.ps1
- Public\Clear-MsalTokenCache.ps1
- Public\Enable-MsalTokenCacheOnDisk.ps1
- Public\Get-MsalAccount.ps1
- Public\Get-MsalClientApplication.ps1
- Public\Get-MsalEnvironment.ps1
- Public\Get-MsalFeatureSupport.ps1
- Public\Get-MsalToken.ps1
- Public\New-MsalClientApplication.ps1
- Public\Remove-MsalClientApplication.ps1
- Public\Remove-MsalEnvironment.ps1
- Public\Select-MsalClientApplication.ps1
- Public\Set-MsalEnvironment.ps1
Version History
| Version | Downloads | Last updated |
|---|---|---|
| 5.0.1 (current version) | 8 | 11/9/2026 |