📜 VBScript (WSH)
Check "Show This PC Icon on Desktop" Status (VBScript)
Reads the registry value behind the "Show This PC Icon on Desktop" tweak to confirm whether it's applied.
CheckShowThisPCOnDesktopStatus.vbs
' ============================================================
' CheckShowThisPCOnDesktopStatus.vbs
'
' Checks whether "Show This PC Icon on Desktop" is currently applied.
'
' Usage: cscript CheckShowThisPCOnDesktopStatus.vbs
' ============================================================
Option Explicit
Dim objShell, currentValue
Set objShell = CreateObject("WScript.Shell")
On Error Resume Next
currentValue = objShell.RegRead("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel\{20D04FE0-3AEA-1069-A2D8-08002B30309D}")
If Err.Number <> 0 Then
WScript.Echo "'{20D04FE0-3AEA-1069-A2D8-08002B30309D}' is not set (using the Windows default)."
Else
WScript.Echo "Current value of '{20D04FE0-3AEA-1069-A2D8-08002B30309D}': " & currentValue
End If
On Error Goto 0