⚡ PowerShell 5.1+
Check "Enable Clipboard History" Status
Reads the current registry value behind the "Enable Clipboard History" tweak so you can confirm whether it's applied.
Test-EnableClipboardHistoryStatus.ps1
<#
.SYNOPSIS
Checks whether "Enable Clipboard History" is currently applied.
.DESCRIPTION
Reads HKCU:\Software\Microsoft\Clipboard \ EnableClipboardHistory and reports its current value,
or reports that it isn't set (falling back to the Windows default).
.EXAMPLE
.\Test-EnableClipboardHistoryStatus.ps1
#>
[CmdletBinding()]
param()
$regPath = 'HKCU:\Software\Microsoft\Clipboard'
$value = Get-ItemProperty -Path $regPath -Name 'EnableClipboardHistory' -ErrorAction SilentlyContinue
if ($null -eq $value) {
Write-Host "'EnableClipboardHistory' is not set at $regPath (using the Windows default)." -ForegroundColor Yellow
} else {
Write-Host "Current value of 'EnableClipboardHistory': $($value.'EnableClipboardHistory')" -ForegroundColor Green
}