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
This commit is contained in:
24
clients/cascades-tucson/scripts/find-all-shortcuts.ps1
Normal file
24
clients/cascades-tucson/scripts/find-all-shortcuts.ps1
Normal file
@@ -0,0 +1,24 @@
|
||||
# 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)]" }
|
||||
Reference in New Issue
Block a user