⚡ PowerShell 5.1+

Enable Clipboard History

Turns on Windows+V clipboard history.

By WindowsScripting.com · 640 B
Set-EnableClipboardHistory.ps1
<#
.SYNOPSIS
    Enable Clipboard History.

.DESCRIPTION
    Turns on Windows+V clipboard history.

    Sets HKCU:\Software\Microsoft\Clipboard \ EnableClipboardHistory to 1.

.EXAMPLE
    .\Set-EnableClipboardHistory.ps1
#>

[CmdletBinding()]
param()

$regPath = 'HKCU:\Software\Microsoft\Clipboard'

if (-not (Test-Path $regPath)) {
    New-Item -Path $regPath -Force | Out-Null
}

New-ItemProperty -Path $regPath -Name 'EnableClipboardHistory' -Value 1 -PropertyType DWord -Force | Out-Null

Write-Host "Enable Clipboard History applied. Sign out and back in (or restart explorer.exe) for it to fully take effect." -ForegroundColor Green