# Check every possible shortcut location
Write-Output "=== C:\Users\Public\Desktop ==="
Get-ChildItem "C:\Users\Public\Desktop\*" | ForEach-Object { Write-Output "  $($_.Name)  [$($_.FullName)]" }
Write-Output ""
Write-Output "=== C:\Users\pilot.test\Desktop ==="
Get-ChildItem "C:\Users\pilot.test\Desktop\*" | ForEach-Object { Write-Output "  $($_.Name)  [$($_.FullName)]" }
Write-Output ""
Write-Output "=== C:\Users\Default\Desktop ==="
Get-ChildItem "C:\Users\Default\Desktop\*" -ErrorAction SilentlyContinue | ForEach-Object { Write-Output "  $($_.Name)  [$($_.FullName)]" }
Write-Output ""
Write-Output "=== All Users profile Desktop ==="
$allUsers = [Environment]::GetFolderPath("CommonDesktopDirectory")
Write-Output "  Path: $allUsers"
Get-ChildItem "$allUsers\*" | ForEach-Object { Write-Output "  $($_.Name)  [$($_.FullName)]" }
Write-Output ""
Write-Output "=== pilot.test shell:desktop (resolved) ==="
$shell = "C:\Users\pilot.test\AppData\Roaming\Microsoft\Windows\Desktop"
if (Test-Path $shell) { Get-ChildItem "$shell\*" | ForEach-Object { Write-Output "  $($_.Name)" } } else { Write-Output "  (not present)" }
Write-Output ""
Write-Output "=== OneDrive Desktop redirect? ==="
$od = Get-ItemProperty "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -ErrorAction SilentlyContinue
if ($od) { Write-Output "  Desktop = $($od.Desktop)" }
$odSys = Get-ItemProperty "Registry::HKEY_USERS\*\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name Desktop -ErrorAction SilentlyContinue
$odSys | ForEach-Object { Write-Output "  HKU Desktop = $($_.Desktop)  [$($_.PSPath)]" }
