Files
management-scripts/Fix-Microsoft365Authentication.ps1
2022-03-31 16:26:28 -04:00

5 lines
311 B
PowerShell

# Note: Run this script as SYSTEM and make sure the affected user is LOGGED OFF!
$User = '[{UserDirectoryName]}'
Get-ChildItem -Path "${Env:SystemDrive}\Users\${User}\AppData\Local\Packages" -Directory -Filter "Microsoft.AAD.BrokerPlugin_*" | ForEach-Object { Rename-Item $_.FullName $($_.FullName + ".old") }