-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathregistryTweaks.ps1
32 lines (26 loc) · 1.71 KB
/
registryTweaks.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Miscellaneous registry modifications.
# Review before running.
# Privilege Escalation
if (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) {
Start-Process PowerShell -Verb RunAs "-NoProfile -ExecutionPolicy Bypass -Command `"cd '$pwd'; & '$PSCommandPath';`"";
exit;
}
# Sets clock to UTC, prevents time issues when dual booting Linux/OSX systems.
# Does not cause any regression when single booting.
Set-Itemproperty -path "HKLM:\SYSTEM\CurrentControlSet\Control\TimeZoneInformation" -Name "RealTimeIsUniversal" -Value 1
# Disable Fullscreen optimization in games, fixes fullscreen flickering with some display adapters.
# May improve gaming performance.
New-PSDrive HKU Registry HKEY_USERS
Set-Itemproperty -path "HKU:\*\System\GameConfigStore" -Name "GameDVR_FSEBehavior" -Value 2
Set-Itemproperty -path "HKU:\*\System\GameConfigStore" -Name "GameDVR_FSEBehaviorMode" -Value 2
Set-Itemproperty -path "HKU:\*\System\GameConfigStore" -Name "GameDVR_HonorUserFSEBehaviorMode" -Value 2
Remove-PSDrive -Name "HKU"
# Disable NetBIOS over TCP/IP service
# This legacy service (< Win2k) is vulnerable and shouldn't be used anymore.
# Do not remove if your computer belongs to your organization's network and you are not sure.
Set-Itemproperty -path "HKLM:\SYSTEM\CurrentControlSet\Services\NetBT" -Name "Start" -Value 4
# Disable Web Search on Windows 10 2004+
# https://winaero.com/disable-web-search-in-taskbar-in-windows-10-version-2004/
New-Item -Path "HKCU:\SOFTWARE\Policies\Microsoft\Windows\Explorer"
Set-Itemproperty -path "HKCU:\SOFTWARE\Policies\Microsoft\Windows\Explorer" -Name "DisableSearchBoxSuggestions" -Value 1
pause