/AADSTSErrorInfo

Look up AADTS error codes

Primary LanguagePowerShellMIT LicenseMIT

AADSTSErrorInfo

Minimum Supported PowerShell Version Minimum Supported PowerShell Version Cross Platform PowerShell Gallery Version PowerShell Gallery [License

Introduction

The AADSTSErrorInfo PowerShell Module provides a quick and easy way to lookup Azure AD Authentication and authorization error codes and retrieve AADSTS descriptions, fixes, and when available suggested workarounds or recommendations.

Error codes and messages are subject to change, the documentation here might not always be up to date. Using the AADSTSErrorInfo module will get you up to date information directly from the error page.

https://login.microsoftonline.com/error

Getting started

Run the following command to install the AADSTSErrorInfo PowerShell module

Install-Module -Name AADSTSErrorInfo -Scope CurrentUser

List the included functions (currently there is just one)

get-command -Module AADSTSErrorInfo

Lookup an error code

Get-AADSTSError -ErrorCode 50076 |fl

When the error code is found the script returns the Error Code, Description and Remediation information

ErrorCode   : 50076
Description : Due to a configuration change made by your administrator, or because you moved to a new location, you
              must use multi-factor authentication to access '{resource}'.
Remediation : User needs to perform multi-factor authentication. There could be multiple things requiring
              multi-factor, e.g. Conditional Access policies, per-user enforcement, requested by client, among others.

Release Notes

Version Date Notes
0.0.1 18.01.2021 Initial version
0.0.2 22.01.2021 minor updates
0.0.3 01.02.2021 Added support for PowerShell 7

Credits

@FredWeinmann This module was created using the PSModuleDevelopment

@PalmEmanuel for his blog post (https://www.pipehow.tech/invoke-webscrape/) that inspired me to build a workaround when i found out that the Invoke-WebRequest on PowerShell core does no longer return the ParsedHtml property

TODO

  • Build pipeline