diff --git a/Fix-Microsoft365Authentication.ps1 b/Fix-Microsoft365Authentication.ps1 new file mode 100644 index 0000000..6162e98 --- /dev/null +++ b/Fix-Microsoft365Authentication.ps1 @@ -0,0 +1,5 @@ +# 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") } \ No newline at end of file