Files
claudetools/clients/cascades-tucson/scripts/clear-edge-profiles-gpupdate.ps1
Howard Enos 8d2ca14cac sync: auto-sync from HOWARD-HOME at 2026-07-17 14:14:41
Author: Howard Enos
Machine: HOWARD-HOME
Timestamp: 2026-07-17 14:14:41
2026-07-17 14:15:20 -07:00

14 lines
557 B
PowerShell

# Remove stale Edge profile data for the current pilot.test user
$edgePath = "C:\Users\pilot.test\AppData\Local\Microsoft\Edge\User Data"
if (Test-Path $edgePath) {
# Kill Edge first
Get-Process msedge -ErrorAction SilentlyContinue | Stop-Process -Force
Start-Sleep -Seconds 2
Remove-Item $edgePath -Recurse -Force -ErrorAction SilentlyContinue
Write-Output "Cleared Edge profile data for pilot.test"
} else {
Write-Output "No Edge profile data for pilot.test"
}
gpupdate /force /wait:60 2>&1 | Out-Null
Write-Output "gpupdate done"