Files
management-scripts/Fix-Microsoft365Authentication.ps1
T

5 lines
311 B
PowerShell
Raw Normal View History

2022-03-31 16:26:28 -04:00
# 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") }