Add requires reboot message to Clipboard History

- Updated Natural scroll reboot message
main
Plínio Larrubia 2 years ago committed by Plínio Larrubia
parent 70664ab131
commit 7b9ccc56fe
No known key found for this signature in database
GPG Key ID: 057B0A87CB137C69

@ -38,13 +38,13 @@ function Enable-BackgroundAppsToogle() {
}
function Disable-ClipboardHistory() {
Write-Status -Types "-", "Privacy" -Status "Disabling Clipboard History..."
Write-Status -Types "-", "Privacy" -Status "Disabling Clipboard History (requires reboot!)..."
Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\System" -Name "AllowClipboardHistory" -Type DWord -Value 0
Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Clipboard" -Name "EnableClipboardHistory" -Type DWord -Value 0
}
function Enable-ClipboardHistory() {
Write-Status -Types "*", "Privacy" -Status "Enabling Clipboard History..."
Write-Status -Types "*", "Privacy" -Status "Enabling Clipboard History (requires reboot!)..."
Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\System" -Name "AllowClipboardHistory" -Type DWord -Value 1
Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Clipboard" -Name "EnableClipboardHistory" -Type DWord -Value 1
}
@ -167,14 +167,14 @@ function Enable-InternetExplorer() {
# Code from: https://answers.microsoft.com/en-us/windows/forum/all/set-the-mouse-scroll-direction-to-reverse-natural/ede4ccc4-3846-4184-a86d-a028515040c0
function Disable-MouseNaturalScroll() {
Get-PnpDevice -Class Mouse -PresentOnly -Status OK | ForEach-Object {
Write-Status -Types "*" -Status "Disabling mouse natural mode on $($_.Name): $($_.DeviceID) (needs restart!)"
Write-Status -Types "*" -Status "Disabling mouse natural mode on $($_.Name): $($_.DeviceID) (requires reboot!)"
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Enum\$($_.DeviceID)\Device Parameters" -Name "FlipFlopWheel" -Type DWord -Value 0
}
}
function Enable-MouseNaturalScroll() {
Get-PnpDevice -Class Mouse -PresentOnly -Status OK | ForEach-Object {
Write-Status -Types "+" -Status "Enabling mouse natural mode on $($_.Name): $($_.DeviceID) (needs restart!)"
Write-Status -Types "+" -Status "Enabling mouse natural mode on $($_.Name): $($_.DeviceID) (requires reboot!)"
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Enum\$($_.DeviceID)\Device Parameters" -Name "FlipFlopWheel" -Type DWord -Value 1
}
}
@ -311,4 +311,4 @@ function Enable-XboxGameBarDVR() {
New-Item -Path "$PathToLMPoliciesGameDVR" -Force | Out-Null
}
Remove-ItemProperty -Path "$PathToLMPoliciesGameDVR" -Name "AllowGameDVR"
}
}

Loading…
Cancel
Save