📜 VBScript (WSH)

Enable Clipboard History (VBScript)

Turns on Windows+V clipboard history. Applies the tweak via WScript.Shell.RegWrite.

By WindowsScripting.com · 665 B
SetEnableClipboardHistory.vbs
' ============================================================
' SetEnableClipboardHistory.vbs
'
' Enable Clipboard History.
' Turns on Windows+V clipboard history.
'
' Usage: cscript SetEnableClipboardHistory.vbs
' ============================================================

Option Explicit

Dim objShell
Set objShell = CreateObject("WScript.Shell")

On Error Resume Next
objShell.RegWrite "HKCU\Software\Microsoft\Clipboard\EnableClipboardHistory", 1, "REG_DWORD"

If Err.Number = 0 Then
    WScript.Echo "Enable Clipboard History applied."
Else
    WScript.Echo "Failed to apply tweak (Error " & Err.Number & ": " & Err.Description & ")"
End If
On Error Goto 0