# Remove per-user duplicates (Public Desktop is the canonical source)
$userDesktop = "C:\Users\pilot.test\Desktop"
Remove-Item "$userDesktop\ALIS.url" -Force -ErrorAction SilentlyContinue
Remove-Item "$userDesktop\Helpany.url" -Force -ErrorAction SilentlyContinue
Remove-Item "$userDesktop\LinkRx.url" -Force -ErrorAction SilentlyContinue
Remove-Item "$userDesktop\PharmCare.url" -Force -ErrorAction SilentlyContinue
Write-Output "Cleared per-user shortcut duplicates"

# Verify Public Desktop has the right 3
Write-Output ""
Write-Output "=== Public Desktop (all users) ==="
Get-ChildItem "C:\Users\Public\Desktop\*" -ErrorAction SilentlyContinue | ForEach-Object { Write-Output "  $($_.Name)" }
Write-Output ""
Write-Output "=== pilot.test Desktop (should be empty of our URLs now) ==="
Get-ChildItem "$userDesktop\*.url","$userDesktop\*.lnk" -ErrorAction SilentlyContinue | ForEach-Object { Write-Output "  $($_.Name)" }
