🖥️ Batch (CMD)

Check "Show This PC Icon on Desktop" Status (Batch)

Uses reg query to check the current value behind the "Show This PC Icon on Desktop" tweak.

By WindowsScripting.com · 546 B
CheckShowThisPCOnDesktopStatus.bat
@echo off
:: ============================================================
:: CheckShowThisPCOnDesktopStatus.bat
::
:: Checks whether "Show This PC Icon on Desktop" is currently applied.
:: ============================================================

reg query "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel" /v "{20D04FE0-3AEA-1069-A2D8-08002B30309D}" 2>nul

if %ERRORLEVEL% NEQ 0 (
    echo.
    echo '{20D04FE0-3AEA-1069-A2D8-08002B30309D}' is not set (using the Windows default^).
)
pause