|
|
|
@ -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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|