andycattle / automate-azuremfa-hardware-totp

PowerShell script that can help automate the process of importing and activating hardware TOPT tokens into Azure MFA. Currently there are no built-in PowerShell commands for this purpose.
MIT License
4 stars 1 forks source link

Automate Azure MFA Hardware Tokens

PowerShell script that can help automate the process of importing and activating hardware TOPT tokens into Azure MFA. Currently there are no built-in PowerShell commands for this purpose.

Warning

This script uses undocumented API endpoints and should be used with caution.

Pre-Requisite:

Usage

Azure Government Support

This script also supports Azure Government environments. To use the script with Azure Government, specify the -azureEnvironment parameter with the value AzureUSGovernment. For example:

.\Add-AzureMfaToken.ps1 -upn email.address@domain.com -serialNumber 000000000 -tokensCSV c:\pathTo\tokens.csv -environment AzureUSGovernment

Attributions

Code to generate one time password by Jon Friesen