ADScripts/Rotate-AZUREADSSO.ps1

4 lines
507 B
PowerShell
Raw Normal View History

2023-09-14 11:13:58 -06:00
Import-Module $env:programfiles"\Microsoft Azure Active Directory Connect\AzureADSSO.psd1" -Scope process
New-AzureADSSOAuthenticationContext # This command should give you a popup to enter your tenant's Global Administrator credentials.
$creds = Get-Credential -Message "enter your local domain admin credentials"
Update-AzureADSSOForest -OnPremCredentials $creds # This command updates the Kerberos decryption key for the AZUREADSSO computer account in this specific AD forest and updates it in Azure AD.