5 lines
311 B
PowerShell
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") } |