# 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") }