From 917cfe6627b755797f4fc46362c9d11d8237bd67 Mon Sep 17 00:00:00 2001 From: David Yoder Date: Thu, 31 Mar 2022 16:26:28 -0400 Subject: [PATCH] added script --- Fix-Microsoft365Authentication.ps1 | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 Fix-Microsoft365Authentication.ps1 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