Skip to content

Commit bf99994

Browse files
New tweaks and Privacy Features added
- Enable Developer mode - Remove Network from Navigation Pane - Add ".bat" to "New" submenu of Desktop context menu - Add ".reg" to "New" submenu of Desktop context menu - If you have Win10/11 Pro, Win10/11 Enterprise or Win10/11 Pro for Workstations and has the Unbranded Boot features then this will suppress all Windows UI elements (logo, status indicator, and status message) during startup
1 parent 309aff5 commit bf99994

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

scriptOptimizer.bat

+24-1
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,27 @@ ECHO Killing Window Manager...
8181
REM if system on SSD drive - set 0, HDD - 3
8282
SET Prefetch=0
8383

84+
:: Enable Developer mode
85+
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock" /v "AllowDevelopmentWithoutDevLicense" /t REG_DWORD /d "1" /f 1>NUL 2>NUL
86+
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock" /v "AllowAllTrustedApps" /t REG_DWORD /d "1" /f 1>NUL 2>NUL
87+
88+
:: Remove Network from Navigation Pane
89+
SetACL.exe -silent -on "HKCR\CLSID\{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}" -ot reg -actn setowner -ownr "n:Administrators"
90+
SetACL.exe -silent -on "HKCR\CLSID\{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}" -ot reg -actn ace -ace "n:Administrators;p:full"
91+
reg add "HKCR\CLSID\{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}" /v "System.IsPinnedToNameSpaceTree" /t REG_DWORD /d "0" /f 1>NUL 2>NUL
92+
93+
:: Add ".bat" to "New" submenu of Desktop context menu
94+
reg add "HKLM\Software\Classes\.bat\ShellNew" /v "NullFile" /t REG_SZ /d "1" /f 1>NUL 2>NUL
95+
reg add "HKLM\Software\Classes\.bat\ShellNew" /v "ItemName" /t REG_EXPAND_SZ /d "@C:\Windows\System32\acppage.dll,-6002" /f 1>NUL 2>NUL
96+
97+
:: Add ".reg" to "New" submenu of Desktop context menu
98+
reg add "HKLM\Software\Classes\.reg\ShellNew" /v "NullFile" /t REG_SZ /d "" /f 1>NUL 2>NUL
99+
reg add "HKLM\Software\Classes\.reg\ShellNew" /v "ItemName" /t REG_EXPAND_SZ /d "@C:\WINDOWS\regedit.exe,-309" /f 1>NUL 2>NUL
100+
101+
:: If you have Win10/11 Pro, Win10/11 Enterprise or Win10/11 Pro for Workstations and has the Unbranded Boot features then this will
102+
:: To suppress all Windows UI elements (logo, status indicator, and status message) during startup
103+
bcdedit.exe -set {globalsettings} bootuxdisabled on
104+
84105
:: Kill Foreground
85106
taskkill /F /IM "MicrosoftEdge.exe" 1>NUL 2>NUL
86107
taskkill /F /IM "explorer.exe" 1>NUL 2>NUL
@@ -883,4 +904,6 @@ goto end
883904
explorer.exe
884905
pause
885906
CLS
886-
EXIT
907+
:: Force restart
908+
shutdown /r /f /t 0
909+
EXIT

0 commit comments

Comments
 (0)