Skip to content
This repository was archived by the owner on May 28, 2021. It is now read-only.

Commit c37015a

Browse files
committed
Add "Enable Clipboard History", closes #231 (thx @Ash258)
1 parent 5c29297 commit c37015a

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

Default.preset

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ SetDEPOptOut # SetDEPOptIn
6666
DisableUpdateRestart # EnableUpdateRestart
6767
# DisableHomeGroups # EnableHomeGroups
6868
DisableSharedExperiences # EnableSharedExperiences
69+
# EnableClipboardHistory # DisableClipboardHistory
6970
DisableRemoteAssistance # EnableRemoteAssistance
7071
EnableRemoteDesktop # DisableRemoteDesktop
7172
DisableAutoplay # EnableAutoplay

Win10.psm1

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1010,6 +1010,18 @@ Function EnableSharedExperiences {
10101010
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\CDP" -Name "RomeSdkChannelUserAuthzPolicy" -Type DWord -Value 1
10111011
}
10121012

1013+
# Enable Clipboard History - Applicable since 1809
1014+
Function EnableClipboardHistory {
1015+
Write-Output "Enabling Clipboard History..."
1016+
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Clipboard" -Name "EnableClipboardHistory" -Type DWord -Value 1
1017+
}
1018+
1019+
# Disable Clipboard History - Applicable since 1809
1020+
Function DisableClipboardHistory {
1021+
Write-Output "Disabling Clipboard History..."
1022+
Remove-ItemProperty -Path "HKCU:\Software\Microsoft\Clipboard" -Name "EnableClipboardHistory" -ErrorAction SilentlyContinue
1023+
}
1024+
10131025
# Disable Remote Assistance - Not applicable to Server (unless Remote Assistance is explicitly installed)
10141026
Function DisableRemoteAssistance {
10151027
Write-Output "Disabling Remote Assistance..."

0 commit comments

Comments
 (0)