⚡ PowerShell 5.1+

Check "Show Recycle Bin Icon on Desktop" Status

Reads the current registry value behind the "Show Recycle Bin Icon on Desktop" tweak so you can confirm whether it's applied.

By WindowsScripting.com · 970 B
Test-ShowRecycleBinOnDesktopStatus.ps1
<#
.SYNOPSIS
    Checks whether "Show Recycle Bin Icon on Desktop" is currently applied.

.DESCRIPTION
    Reads HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel \ {645FF040-5081-101B-9F08-00AA002F954E} and reports its current value,
    or reports that it isn't set (falling back to the Windows default).

.EXAMPLE
    .\Test-ShowRecycleBinOnDesktopStatus.ps1
#>

[CmdletBinding()]
param()

$regPath = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel'

$value = Get-ItemProperty -Path $regPath -Name '{645FF040-5081-101B-9F08-00AA002F954E}' -ErrorAction SilentlyContinue

if ($null -eq $value) {
    Write-Host "'{645FF040-5081-101B-9F08-00AA002F954E}' is not set at $regPath (using the Windows default)." -ForegroundColor Yellow
} else {
    Write-Host "Current value of '{645FF040-5081-101B-9F08-00AA002F954E}': $($value.'{645FF040-5081-101B-9F08-00AA002F954E}')" -ForegroundColor Green
}