-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSpeedo.bat
More file actions
437 lines (409 loc) · 29.9 KB
/
Speedo.bat
File metadata and controls
437 lines (409 loc) · 29.9 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: by MilesthoN ::
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::
@ECHO OFF
CHCP 65001>NUL
COLOR F9
TITLE Speedo (Windows 10+) by MilesthoN
ECHO.&ECHO.
ECHO Check update..
ECHO Проверка обновлений..
curl -# --ssl-no-revoke --insecure -L https://github.com/milesthon/Speedo/raw/main/Speedo.bat -o "%temp%\CheckSpeedoVersion.txt"
if %errorlevel% neq 0 goto noupdate
ECHO.&ECHO.
findstr /c:"CheckSpeedoVersion 02052025" "%temp%\CheckSpeedoVersion.txt" > nul
if %errorlevel%==0 (
goto noupdate
) else (
cls
COLOR F9
ECHO.&ECHO.
ECHO Update..
curl -# --ssl-no-revoke --insecure -L https://codeload.github.com/milesthon/Speedo/zip/refs/heads/main -o "%temp%\Speedo-main.zip"
ECHO.
powershell -command "Expand-Archive -Path "%temp%\Speedo-main.zip" -DestinationPath "%temp%\Speedo-main" -Force" 2>nul >nul
copy "%temp%\Speedo-main\Speedo-main\*" "%~dp0" 2>nul >nul
start "" "%~f0"&exit
)
:noupdate
MODE 62,8
ECHO.&ECHO.&ECHO.&ECHO Run as Administrator..&ECHO Запуск от имени Администратора..&ECHO.&ECHO.
net sess>NUL 2>&1||(powershell try{saps '%0'-Verb RunAs}catch{}&exit)
cls
MODE 62,26
COLOR F9
ECHO.&ECHO.&ECHO.&ECHO.
CALL :COLOR F5
CALL :ECHO " ###"
CALL :COLOR F5
CALL :ECHO " #######"
CALL :COLOR F5
CALL :ECHO " #########"
CALL :COLOR F5
CALL :ECHO " #########"
CALL :COLOR FD
CALL :ECHO " ###########" /
CALL :COLOR FD
CALL :ECHO " #####"
CALL :COLOR FD
CALL :ECHO " ###########" /
CALL :COLOR FD
CALL :ECHO " ########"
CALL :COLOR F1
CALL :ECHO " #####" /
CALL :COLOR F1
CALL :ECHO " ###############"
CALL :COLOR F1
CALL :ECHO " ####" /
CALL :COLOR F1
CALL :ECHO " ###############"
CALL :COLOR F9
CALL :ECHO " #######" /
CALL :COLOR F9
CALL :ECHO " ######"
CALL :COLOR F9
CALL :ECHO " ###" /
CALL :COLOR F9
CALL :ECHO " #####"
CALL :COLOR F3
CALL :ECHO " ####"
CALL :COLOR F3
CALL :ECHO " ####"
CALL :COLOR F3
CALL :ECHO " ####"
CALL :COLOR F3
CALL :ECHO " ####"
CALL :COLOR FB
CALL :ECHO " ####"
CALL :COLOR FB
CALL :ECHO " #####"
CALL :COLOR FB
CALL :ECHO " ####"
CALL :COLOR FB
CALL :ECHO " ####"
ping localhost -n 2 >NUL
goto sett
exit/b
:COLOR
set c=%1& exit/b
:ECHO
for /f %%i in ('"prompt $h& for %%i in (.) do rem"') do (
pushd "%~dp0"& <NUL>"%~1_" set/p="%%i%%i "& findstr/a:%c% . "%~1_*"
(if "%~2" neq "/" ECHO.)& del "%~1_"& popd& set c=& exit/b
)
:sett
cls
MODE 62,7
cls
echo.
echo Wait..
:: Default MSConfig
bcdedit /deletevalue {current} numproc 2>nul >nul
bcdedit /deletevalue {current} removememory 2>nul >nul
bcdedit /deletevalue {current} truncatememory 2>nul >nul
bcdedit /deletevalue {default} removememory 2>nul >nul
bcdedit /deletevalue {default} truncatememory 2>nul >nul
bcdedit /set {default} bootmenupolicy standard 2>nul >nul
:: Virtual Memory Paging File
wmic computersystem where name="%computername%" set AutomaticManagedPagefile=True 2>nul >nul
:: Disabling hibernation
powercfg.exe /hibernate off 2>nul >nul
:: Enabling high performance
powercfg /s 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c 2>nul >nul
:: Registry tweaks..
:: Offline maps
REG ADD "HKLM\SYSTEM\Maps" /v AutoUpdateEnabled /d 0 /t REG_DWORD /f 2>nul >nul
:: Autoload
REG ADD "HKCU\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppModel\SystemAppData\Microsoft.549981C3F5F10_8wekyb3d8bbwe\CortanaStartupId" /v UserEnabledStartupOnce /d 0 /t REG_DWORD /f 2>nul >nul
REG ADD "HKCU\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppModel\SystemAppData\Microsoft.549981C3F5F10_8wekyb3d8bbwe\CortanaStartupId" /v State /d 1 /t REG_DWORD /f 2>nul >nul
:: Accessibility Keyboard
REG ADD "HKCU\Control Panel\Accessibility\StickyKeys" /v Flags /t REG_SZ /d 506 /f 2>nul >nul
REG ADD "HKCU\Control Panel\Accessibility\Keyboard Response" /v Flags /t REG_SZ /d 122 /f 2>nul >nul
REG ADD "HKCU\Control Panel\Accessibility\ToggleKeys" /v Flags /t REG_SZ /d 58 /f 2>nul >nul
:: Settings - Privacy - General
REG ADD "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo" /v Enabled /d 0 /t REG_DWORD /f 2>nul >nul
REG ADD "HKCU\Control Panel\International\User Profile" /v HttpAcceptLanguageOptOut /d 1 /t REG_DWORD /f 2>nul >nul
:: Settings - Privacy - Voice Features
REG ADD "HKCU\SOFTWARE\Microsoft\Speech_OneCore\Settings\OnlineSpeechPrivacy" /v HasAccepted /d 0 /t REG_DWORD /f 2>nul >nul
:: Settings - Privacy - Personalize handwriting and keyboard input
REG ADD "HKCU\SOFTWARE\Microsoft\InputPersonalization" /v RestrictImplicitInkCollection /d 1 /t REG_DWORD /f 2>nul >nul
REG ADD "HKCU\SOFTWARE\Microsoft\InputPersonalization" /v RestrictImplicitTextCollection /d 1 /t REG_DWORD /f 2>nul >nul
REG ADD "HKCU\SOFTWARE\Microsoft\InputPersonalization\TrainedDataStore" /v HarvestContacts /d 0 /t REG_DWORD /f 2>nul >nul
REG ADD "HKCU\SOFTWARE\Microsoft\Personalization\Settings" /v AcceptedPrivacyPolicy /d 0 /t REG_DWORD /f 2>nul >nul
:: Background applications
REG ADD "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\Microsoft.Windows.Photos_8wekyb3d8bbwe" /v Disabled /d 1 /t REG_DWORD /f 2>nul >nul
REG ADD "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\Microsoft.Windows.Photos_8wekyb3d8bbwe" /v DisabledByUser /d 1 /t REG_DWORD /f 2>nul >nul
REG ADD "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\Microsoft.YourPhone_8wekyb3d8bbwe" /v Disabled /d 1 /t REG_DWORD /f 2>nul >nul
REG ADD "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\Microsoft.YourPhone_8wekyb3d8bbwe" /v DisabledByUser /d 1 /t REG_DWORD /f 2>nul >nul
REG ADD "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\Microsoft.WindowsMaps_8wekyb3d8bbwe" /v Disabled /d 1 /t REG_DWORD /f 2>nul >nul
REG ADD "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\Microsoft.WindowsMaps_8wekyb3d8bbwe" /v DisabledByUser /d 1 /t REG_DWORD /f 2>nul >nul
REG ADD "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\Microsoft.WindowsAlarms_8wekyb3d8bbwe" /v Disabled /d 1 /t REG_DWORD /f 2>nul >nul
REG ADD "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\Microsoft.WindowsAlarms_8wekyb3d8bbwe" /v DisabledByUser /d 1 /t REG_DWORD /f 2>nul >nul
REG ADD "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\Microsoft.MSPaint_8wekyb3d8bbwe" /v Disabled /d 1 /t REG_DWORD /f 2>nul >nul
REG ADD "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\Microsoft.MSPaint_8wekyb3d8bbwe" /v DisabledByUser /d 1 /t REG_DWORD /f 2>nul >nul
REG ADD "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\Microsoft.549981C3F5F10_8wekyb3d8bbwe" /v Disabled /d 1 /t REG_DWORD /f 2>nul >nul
REG ADD "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\Microsoft.549981C3F5F10_8wekyb3d8bbwe" /v DisabledByUser /d 1 /t REG_DWORD /f 2>nul >nul
REG ADD "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\Microsoft.People_8wekyb3d8bbwe" /v Disabled /d 1 /t REG_DWORD /f 2>nul >nul
REG ADD "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\Microsoft.People_8wekyb3d8bbwe" /v DisabledByUser /d 1 /t REG_DWORD /f 2>nul >nul
:: Reducing application startup speed
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Serialize" /v StartupDelayInMSec /d 0 /t REG_DWORD /f 2>nul >nul
:: Increase file system cache
REG ADD "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v LargeSystemCache /d 0 /t REG_DWORD /f 2>nul >nul
:: Sound - When using a computer for conversation
REG ADD "HKCU\Software\Microsoft\Multimedia\Audio" /v "UserDuckingPreference" /d 3 /t REG_DWORD /f 2>nul >nul
:: Feedback & diagnostics. Disable telemetry
REG ADD "HKLM\SOFTWARE\Policies\Microsoft\Windows\DataCollection" /v "AllowTelemetry" /d 0 /t REG_DWORD /f 2>nul >nul
REG ADD "HKLM\SOFTWARE\WOW6432Node\Policies\Microsoft\Windows\DataCollection" /v "AllowTelemetry" /d 0 /t REG_DWORD /f 2>nul >nul
REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\DataCollection" /v "AllowTelemetry" /d 0 /t REG_DWORD /f 2>nul >nul
REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\DataCollection" /v "MaxTelemetryAllowed" /d 0 /t REG_DWORD /f 2>nul >nul
REG ADD "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Policies\DataCollection" /v "AllowTelemetry" /d 0 /t REG_DWORD /f 2>nul >nul
REG ADD "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Policies\DataCollection" /v "MaxTelemetryAllowed" /d 0 /t REG_DWORD /f 2>nul >nul
REG ADD "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppCompat" /v "AITEnable" /d 0 /t REG_DWORD /f 2>nul >nul
:: Disable Diagtrack-Listener
REG ADD "HKLM\SYSTEM\CurrentControlSet\Control\WMI\Autologger\Diagtrack-Listener" /v "Start" /d 0 /t REG_DWORD /f 2>nul >nul
:: Save attachment zone information
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments" /v "SaveZoneInformation" /d 1 /t REG_DWORD /f 2>nul >nul
:: Disable experiments
REG ADD "HKLM\SOFTWARE\Microsoft\PolicyManager\current\device\System" /v "AllowExperimentation" /d 0 /t REG_DWORD /f 2>nul >nul
:: Disable SIUF
REG ADD "HKCU\Software\Microsoft\Siuf\Rules" /v "NumberOfSIUFInPeriod" /d 0 /t REG_DWORD /f 2>nul >nul
REG ADD "HKCU\Software\Microsoft\Siuf\Rules" /v "PeriodInNanoSeconds" /d 0 /t REG_DWORD /f 2>nul >nul
:: Disable UAR
REG ADD "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppCompat" /v "DisableUAR" /d 1 /t REG_DWORD /f 2>nul >nul
:: Disable camera on lock screen
REG ADD "HKLM\SOFTWARE\Policies\Microsoft\Windows\Personalization" /v "NoLockScreenCamera" /d 1 /t REG_DWORD /f 2>nul >nul
:: Disable handwriting sharing
REG ADD "HKLM\SOFTWARE\Policies\Microsoft\Windows\TabletPC" /v "PreventHandwritingDataSharing" /d 1 /t REG_DWORD /f 2>nul >nul
REG ADD "HKLM\SOFTWARE\Policies\Microsoft\Windows\HandwritingErrorReports" /v "PreventHandwritingErrorReports" /d 1 /t REG_DWORD /f 2>nul >nul
:: Disable TIPC
REG ADD "HKCU\Software\Microsoft\Input\TIPC" /v "Enabled" /d 0 /t REG_DWORD /f 2>nul >nul
:: Disable inventory
REG ADD "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppCompat" /v "DisableInventory" /d 1 /t REG_DWORD /f 2>nul >nul
:: Disable AD Bluetooth
REG ADD "HKLM\SOFTWARE\Microsoft\PolicyManager\current\device\Bluetooth" /v "AllowAdvertising" /d 0 /t REG_DWORD /f 2>nul >nul
:: General. Disable track app launches
REG ADD "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "Start_TrackProgs" /t REG_DWORD /d 0 /f /t REG_DWORD /f 2>nul >nul
:: Speech. Prevent sending your voice input to Microsoft Speech services:
REG ADD "HKCU\SOFTWARE\Microsoft\Speech_OneCore\Settings\OnlineSpeechPrivacy" /v "HasAccepted" /t REG_DWORD /d 0 /f /t REG_DWORD /f 2>nul >nul
:: Feedback & diagnostics. Turn off tailored experiences
REG ADD "HKCU\Software\Policies\Microsoft\Windows\CloudContent" /v "DisableTailoredExperiencesWithDiagnosticData" /d 1 /t REG_DWORD /f 2>nul >nul
:: Inking & Typing. Turn off Inking & Typing data collection
REG ADD "HKCU\Software\Policies\Microsoft\InputPersonalization" /v "RestrictImplicitTextCollection" /d 0 /t REG_DWORD /f 2>nul >nul
REG ADD "HKCU\Software\Policies\Microsoft\InputPersonalization" /v "RestrictImplicitInkCollection" /d 0 /t REG_DWORD /f 2>nul >nul
REG ADD "HKCU\SOFTWARE\Microsoft\InputPersonalization" /v "RestrictImplicitInkCollection" /d 1 /t REG_DWORD /f 2>nul >nul
REG ADD "HKCU\SOFTWARE\Microsoft\InputPersonalization" /v "RestrictImplicitTextCollection" /d 1 /t REG_DWORD /f 2>nul >nul
:: Personalized Experiences. Disable feature
REG ADD "HKCU\Software\Policies\Microsoft\Windows\CloudContent" /v "DisableWindowsSpotlightFeatures" /d 1 /t REG_DWORD /f 2>nul >nul
REG ADD "HKCU\SOFTWARE\Policies\Microsoft\Windows\CloudContent" /v "DisableCloudOptimizedContent" /d 1 /t REG_DWORD /f 2>nul >nul
:: Disable Cortana
REG ADD "HKLM\SOFTWARE\Microsoft\PolicyManager\default\Experience\AllowCortana" /v "value" /d 0 /t REG_DWORD /f 2>nul >nul
REG ADD "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Windows Search" /v "CortanaConsent" /d 0 /t REG_DWORD /f 2>nul >nul
REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Search" /v "CortanaEnabled" /d 0 /t REG_DWORD /f 2>nul >nul
REG ADD "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Search" /v "CortanaEnabled" /d 0 /t REG_DWORD /f 2>nul >nul
REG ADD "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Search" /v "CanCortanaBeEnabled" /d 0 /t REG_DWORD /f 2>nul >nul
:: Cortana and Search Group Policies. Turn off Cortana
REG ADD "HKLM\Software\Policies\Microsoft\Windows\Windows Search" /v "AllowCortana" /d 0 /t REG_DWORD /f 2>nul >nul
:: Cortana and Search Group Policies. Block access to location information for Cortana
REG ADD "HKLM\Software\Policies\Microsoft\Windows\Windows Search" /v "AllowSearchToUseLocation" /d 0 /t REG_DWORD /f 2>nul >nul
:: Cortana and Search Group Policies. Firewall block rule
REG ADD "HKLM\SOFTWARE\Policies\Microsoft\WindowsFirewall\FirewallRules" /v "{0DE40C8E-C126-4A27-9371-A27DAB1039F7}" /t REG_SZ /d "v2.25|Action=Block|Active=TRUE|Dir=Out|Protocol=6|App=%windir%\\SystemApps\\Microsoft.Windows.Cortana_cw5n1h2txyewy\\searchUI.exe|Name=Block outbound Cortana|" /f 2>nul >nul
:: Device metadata retrieval. Prevent
REG ADD "HKLM\Software\Policies\Microsoft\Windows\Device Metadata" /v "PreventDeviceMetadataFromNetwork" /d 1 /t REG_DWORD /f 2>nul >nul
:: Internet Explorer. Turn off background synchronization for feeds and Web Slices
REG ADD "HKLM\Software\Policies\Microsoft\Internet Explorer\Feeds" /v "BackgroundSyncStatus" /d 0 /t REG_DWORD /f 2>nul >nul
:: Microsoft Edge Group Policies. Don't send "Do Not Track"
REG ADD "HKLM\Software\Policies\Microsoft\MicrosoftEdge\Main" /v "DoNotTrack" /d 1 /t REG_DWORD /f 2>nul >nul
:: Offline maps. Disable download and update offline maps
REG ADD "HKLM\Software\Policies\Microsoft\Windows\Maps" /v "AutoDownloadAndUpdateMapData" /d 0 /t REG_DWORD /f 2>nul >nul
REG ADD "HKLM\Software\Policies\Microsoft\Windows\Maps" /v "AllowUntriggeredNetworkTrafficOnSettingsPage" /d 0 /t REG_DWORD /f 2>nul >nul
:: OneDrive. Prevent OneDrive from generating network traffic until the user signs in to OneDrive
REG ADD "HKLM\Software\Microsoft\OneDrive" /v "PreventNetworkTrafficPreUserSignIn" /d 1 /t REG_DWORD /f 2>nul >nul
:: General. Turn off advertising ID
REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo" /v "Enabled" /d 0 /t REG_DWORD /f 2>nul >nul
REG ADD "HKLM\Software\Policies\Microsoft\Windows\AdvertisingInfo" /v "DisabledByGroupPolicy" /t REG_DWORD /d 1 /t REG_DWORD /f 2>nul >nul
:: General. Disable continue experiences
REG ADD "HKLM\Software\Policies\Microsoft\Windows\System" /v "EnableCdp" /d 0 /t REG_DWORD /f 2>nul >nul
:: Feedback & diagnostics. Turn off Feedback notifications
REG ADD "HKLM\Software\Policies\Microsoft\Windows\DataCollection" /v "DoNotShowFeedbackNotifications" /d 1 /t REG_DWORD /f 2>nul >nul
:: Feedback & diagnostics. Turn off tailored experiences
REG ADD "HKLM\Software\Policies\Microsoft\Windows\CloudContent" /v "DisableWindowsConsumerFeatures" /d 1 /t REG_DWORD /f 2>nul >nul
:: Inking & Typing. Turn off Inking & Typing data collection
REG ADD "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\TextInput" /v "AllowLinguisticDataCollection" /d 0 /t REG_DWORD /f 2>nul >nul
:: Activity History. Turn off tracking of your Activity History
REG ADD "HKLM\Software\Policies\Microsoft\Windows\System" /v "EnableActivityFeed" /d 0 /t REG_DWORD /f 2>nul >nul
REG ADD "HKLM\Software\Policies\Microsoft\Windows\System" /v "PublishUserActivities" /d 0 /t REG_DWORD /f 2>nul >nul
REG ADD "HKLM\Software\Policies\Microsoft\Windows\System" /v "UploadUserActivities" /d 0 /t REG_DWORD /f 2>nul >nul
:: News and interests. Disable Windows Feeds
REG ADD "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Feeds" /v "EnableFeeds" /d 0 /t REG_DWORD /f 2>nul >nul
:: Microsoft Defender Antivirus. Stop sending file samples back to Microsoft
REG ADD "HKLM\Software\Policies\Microsoft\Windows Defender\Spynet" /v "SubmitSamplesConsent" /d 2 /t REG_DWORD /f 2>nul >nul
:: ReadyBoost OFF
REG DELETE "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\MemoryManagement\PrefetchParameters" /v EnableSuperfetch /f 2>nul >nul
:: QoS (Quality of Service)
REG DELETE "HKLM\SOFTWARE\Policies\Microsoft\Windows\Psched" /v NonBestEffortLimit /f 2>nul >nul
:: For all users
For /F "Delims=" %%I In ('Dir /B /AD-S-H "C:\Users" ') Do (REG LOAD HKU\%%I C:\Users\%%I\NTUSER.DAT) 2>nul >nul
For /f "tokens=*" %%A in ('reg query HKU') do (
:: Autoload
REG ADD "%%A\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppModel\SystemAppData\Microsoft.549981C3F5F10_8wekyb3d8bbwe\CortanaStartupId" /v UserEnabledStartupOnce /d 0 /t REG_DWORD /f 2>nul >nul
REG ADD "%%A\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppModel\SystemAppData\Microsoft.549981C3F5F10_8wekyb3d8bbwe\CortanaStartupId" /v State /d 1 /t REG_DWORD /f 2>nul >nul
:: Accessibility Keyboard
REG ADD "%%A\Control Panel\Accessibility\StickyKeys" /v Flags /t REG_SZ /d 506 /f 2>nul >nul
REG ADD "%%A\Control Panel\Accessibility\Keyboard Response" /v Flags /t REG_SZ /d 122 /f 2>nul >nul
REG ADD "%%A\Control Panel\Accessibility\ToggleKeys" /v Flags /t REG_SZ /d 58 /f 2>nul >nul
:: Settings - Privacy - General
REG ADD "%%A\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo" /v Enabled /d 0 /t REG_DWORD /f 2>nul >nul
REG ADD "%%A\Control Panel\International\User Profile" /v HttpAcceptLanguageOptOut /d 1 /t REG_DWORD /f 2>nul >nul
:: Settings - Privacy - Personalize handwriting and keyboard input
REG ADD "%%A\SOFTWARE\Microsoft\InputPersonalization" /v RestrictImplicitInkCollection /d 1 /t REG_DWORD /f 2>nul >nul
REG ADD "%%A\SOFTWARE\Microsoft\InputPersonalization" /v RestrictImplicitTextCollection /d 1 /t REG_DWORD /f 2>nul >nul
REG ADD "%%A\SOFTWARE\Microsoft\InputPersonalization\TrainedDataStore" /v HarvestContacts /d 0 /t REG_DWORD /f 2>nul >nul
REG ADD "%%A\SOFTWARE\Microsoft\Personalization\Settings" /v AcceptedPrivacyPolicy /d 0 /t REG_DWORD /f 2>nul >nul
:: Background applications
REG ADD "%%A\SOFTWARE\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\Microsoft.Windows.Photos_8wekyb3d8bbwe" /v Disabled /d 1 /t REG_DWORD /f 2>nul >nul
REG ADD "%%A\SOFTWARE\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\Microsoft.Windows.Photos_8wekyb3d8bbwe" /v DisabledByUser /d 1 /t REG_DWORD /f 2>nul >nul
REG ADD "%%A\SOFTWARE\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\Microsoft.YourPhone_8wekyb3d8bbwe" /v Disabled /d 1 /t REG_DWORD /f 2>nul >nul
REG ADD "%%A\SOFTWARE\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\Microsoft.YourPhone_8wekyb3d8bbwe" /v DisabledByUser /d 1 /t REG_DWORD /f 2>nul >nul
REG ADD "%%A\SOFTWARE\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\Microsoft.WindowsMaps_8wekyb3d8bbwe" /v Disabled /d 1 /t REG_DWORD /f 2>nul >nul
REG ADD "%%A\SOFTWARE\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\Microsoft.WindowsMaps_8wekyb3d8bbwe" /v DisabledByUser /d 1 /t REG_DWORD /f 2>nul >nul
REG ADD "%%A\SOFTWARE\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\Microsoft.WindowsAlarms_8wekyb3d8bbwe" /v Disabled /d 1 /t REG_DWORD /f 2>nul >nul
REG ADD "%%A\SOFTWARE\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\Microsoft.WindowsAlarms_8wekyb3d8bbwe" /v DisabledByUser /d 1 /t REG_DWORD /f 2>nul >nul
REG ADD "%%A\SOFTWARE\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\Microsoft.MSPaint_8wekyb3d8bbwe" /v Disabled /d 1 /t REG_DWORD /f 2>nul >nul
REG ADD "%%A\SOFTWARE\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\Microsoft.MSPaint_8wekyb3d8bbwe" /v DisabledByUser /d 1 /t REG_DWORD /f 2>nul >nul
REG ADD "%%A\SOFTWARE\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\Microsoft.549981C3F5F10_8wekyb3d8bbwe" /v Disabled /d 1 /t REG_DWORD /f 2>nul >nul
REG ADD "%%A\SOFTWARE\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\Microsoft.549981C3F5F10_8wekyb3d8bbwe" /v DisabledByUser /d 1 /t REG_DWORD /f 2>nul >nul
REG ADD "%%A\SOFTWARE\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\Microsoft.People_8wekyb3d8bbwe" /v Disabled /d 1 /t REG_DWORD /f 2>nul >nul
REG ADD "%%A\SOFTWARE\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\Microsoft.People_8wekyb3d8bbwe" /v DisabledByUser /d 1 /t REG_DWORD /f 2>nul >nul
:: Reducing application startup speed
REG ADD "%%A\Software\Microsoft\Windows\CurrentVersion\Explorer\Serialize" /v StartupDelayInMSec /d 0 /t REG_DWORD /f 2>nul >nul
:: Sound - When using a computer for conversation
REG ADD "%%A\Software\Microsoft\Multimedia\Audio" /v "UserDuckingPreference" /d 3 /t REG_DWORD /f 2>nul >nul
:: Save attachment zone information
REG ADD "%%A\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments" /v "SaveZoneInformation" /d 1 /t REG_DWORD /f 2>nul >nul
:: Disable SIUF
REG ADD "%%A\Software\Microsoft\Siuf\Rules" /v "NumberOfSIUFInPeriod" /d 0 /t REG_DWORD /f 2>nul >nul
REG ADD "%%A\Software\Microsoft\Siuf\Rules" /v "PeriodInNanoSeconds" /d 0 /t REG_DWORD /f 2>nul >nul
:: Disable TIPC
REG ADD "%%A\Software\Microsoft\Input\TIPC" /v "Enabled" /d 0 /t REG_DWORD /f 2>nul >nul
:: General. Disable track app launches
REG ADD "%%A\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "Start_TrackProgs" /t REG_DWORD /d 0 /f /t REG_DWORD /f 2>nul >nul
:: Speech. Prevent sending your voice input to Microsoft Speech services:
REG ADD "%%A\SOFTWARE\Microsoft\Speech_OneCore\Settings\OnlineSpeechPrivacy" /v "HasAccepted" /t REG_DWORD /d 0 /f /t REG_DWORD /f 2>nul >nul
:: Feedback & diagnostics. Turn off tailored experiences
REG ADD "%%A\Software\Policies\Microsoft\Windows\CloudContent" /v "DisableTailoredExperiencesWithDiagnosticData" /d 1 /t REG_DWORD /f 2>nul >nul
:: Inking & Typing. Turn off Inking & Typing data collection
REG ADD "%%A\Software\Policies\Microsoft\InputPersonalization" /v "RestrictImplicitTextCollection" /d 0 /t REG_DWORD /f 2>nul >nul
REG ADD "%%A\Software\Policies\Microsoft\InputPersonalization" /v "RestrictImplicitInkCollection" /d 0 /t REG_DWORD /f 2>nul >nul
REG ADD "%%A\SOFTWARE\Microsoft\InputPersonalization" /v "RestrictImplicitInkCollection" /d 1 /t REG_DWORD /f 2>nul >nul
REG ADD "%%A\SOFTWARE\Microsoft\InputPersonalization" /v "RestrictImplicitTextCollection" /d 1 /t REG_DWORD /f 2>nul >nul
:: Personalized Experiences. Disable feature
REG ADD "%%A\Software\Policies\Microsoft\Windows\CloudContent" /v "DisableWindowsSpotlightFeatures" /d 1 /t REG_DWORD /f 2>nul >nul
REG ADD "%%A\SOFTWARE\Policies\Microsoft\Windows\CloudContent" /v "DisableCloudOptimizedContent" /d 1 /t REG_DWORD /f 2>nul >nul
:: Disable Cortana
REG ADD "%%A\SOFTWARE\Microsoft\Windows\CurrentVersion\Windows Search" /v "CortanaConsent" /d 0 /t REG_DWORD /f 2>nul >nul
REG ADD "%%A\SOFTWARE\Microsoft\Windows\CurrentVersion\Search" /v "CortanaEnabled" /d 0 /t REG_DWORD /f 2>nul >nul
REG ADD "%%A\SOFTWARE\Microsoft\Windows\CurrentVersion\Search" /v "CanCortanaBeEnabled" /d 0 /t REG_DWORD /f 2>nul >nul
) 2>nul >nul
:: Disabling unnecessary services
:: Connected user functionality and telemetry
sc stop DiagTrack 2>nul >nul
sc config DiagTrack start=disabled 2>nul >nul
:: Parental control
sc stop WpcMonSvc 2>nul >nul
sc config WpcMonSvc start=disabled 2>nul >nul
:: Certificate Distribution
sc stop CertPropSvc 2>nul >nul
sc config CertPropSvc start=disabled 2>nul >nul
:: UDK Custom Service
sc stop UdkUserSvc_12345 2>nul >nul
sc config UdkUserSvc_12345 start=disabled 2>nul >nul
sc stop UdkUserSvc 2>nul >nul
sc config UdkUserSvc start=disabled 2>nul >nul
sc stop UdkUserSvc_9f69d 2>nul >nul
sc config UdkUserSvc_9f69d start=disabled 2>nul >nul
:: Downloaded map manager
sc stop MapsBroker 2>nul >nul
sc config MapsBroker start=disabled 2>nul >nul
:: Служба маршрутизатора AllJoyn
sc stop AJRouter 2>nul >nul
sc config AJRouter start=disabled 2>nul >nul
:: Microsoft Windows SMS Router Service
sc stop SmsRouter 2>nul >nul
sc config SmsRouter start=disabled 2>nul >nul
:: Store demo service
sc stop RetailDemo 2>nul >nul
sc config RetailDemo start=disabled 2>nul >nul
:: Diagnostic Execution Service
sc stop diagsvc 2>nul >nul
sc config diagsvc start=disabled 2>nul >nul
:: SuperFetch
net stop superfetch 2>nul >nul
sc config sysmain start=disabled 2>nul >nul
:: Enabling required services..
:: DHCP Client
sc config Dhcp start=auto 2>nul >nul
:: DNS Client
sc config Dnscache start=auto 2>nul >nul
:: Network Connections
sc config Netman start=auto 2>nul >nul
:: Network Location Awareness
sc config NlaSvc start=auto 2>nul >nul
:: Remote Procedure Call (RPC)
sc config RpcSs start=auto 2>nul >nul
:: Server
sc config LanmanServer start=auto 2>nul >nul
:: TCP/IP Netbios helper
sc config lmhosts start=auto 2>nul >nul
:: Workstation
sc config LanmanWorkstation start=auto 2>nul >nul
:: Function Discovery Resource Publication
sc config FDResPub start=auto 2>nul >nul
:: UPnP Device Host services
sc config upnphost start=auto 2>nul >nul
:: Wired Auto Config
sc config dot3svc start=auto 2>nul >nul
:: WLAN Auto Config
sc config Wlansvc start=auto 2>nul >nul
:: COM+ Event System
sc config EventSystem start=auto 2>nul >nul
:: Computer Browser
sc config Browser start=auto 2>nul >nul
:: Wireless Zero Configuration
sc config WZCSVC start=auto 2>nul >nul
:: Disabling unnecessary tasks..
:: RAM diagnostics
schtasks /change /tn "Microsoft\Windows\MemoryDiagnostic\ProcessMemoryDiagnosticEvents" /disable 2>nul >nul
schtasks /change /tn "Microsoft\Windows\MemoryDiagnostic\RunFullMemoryDiagnostic" /disable 2>nul >nul
:: Data collection
schtasks /change /tn "Microsoft\Windows\Maintenance\WinSAT" /disable 2>nul >nul
schtasks /change /tn "Microsoft\Windows\Autochk\Proxy" /disable 2>nul >nul
schtasks /change /tn "Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser" /disable 2>nul >nul
schtasks /change /tn "Microsoft\Windows\Application Experience\ProgramDataUpdater" /disable 2>nul >nul
schtasks /change /tn "Microsoft\Windows\Application Experience\StartupAppTask" /disable 2>nul >nul
schtasks /change /tn "Microsoft\Windows\PI\Sqm-Tasks" /disable 2>nul >nul
schtasks /change /tn "Microsoft\Windows\NetTrace\GatherNetworkInfo" /disable 2>nul >nul
schtasks /change /tn "Microsoft\Windows\Customer Experience Improvement Program\Consolidator" /disable 2>nul >nul
schtasks /change /tn "Microsoft\Windows\Customer Experience Improvement Program\KernelCeipTask" /disable 2>nul >nul
schtasks /change /tn "Microsoft\Windows\Customer Experience Improvement Program\UsbCeip" /disable 2>nul >nul
schtasks /change /tn "Microsoft\Windows\DiskDiagnostic\Microsoft-Windows-DiskDiagnosticResolver" /disable 2>nul >nul
schtasks /change /tn "Microsoft\Windows\DiskDiagnostic\Microsoft-Windows-DiskDiagnosticDataCollector" /disable 2>nul >nul
:: Office Data Collection
schtasks /change /tn "Microsoft\Office\Office ClickToRun Service Monitor" /disable 2>nul >nul
schtasks /change /tn "Microsoft\Office\OfficeTelemetry\AgentFallBack2016" /disable 2>nul >nul
schtasks /change /tn "Microsoft\Office\OfficeTelemetry\AgentFallBack2016" /disable 2>nul >nul
schtasks /change /tn "Microsoft\Office\OfficeTelemetry\OfficeTelemetryAgentLogOn2016" /disable 2>nul >nul
schtasks /change /tn "Microsoft\Office\OfficeTelemetryAgentFallBack2016" /disable 2>nul >nul
schtasks /change /tn "Microsoft\Office\OfficeTelemetryAgentLogOn2016" /disable 2>nul >nul
schtasks /change /tn "Microsoft\Office\OfficeTelemetryAgentFallBack" /disable 2>nul >nul
schtasks /change /tn "Microsoft\Office\OfficeTelemetryAgentLogOn" /disable 2>nul >nul
schtasks /change /tn "Microsoft\Office\Office 15 Subscription Heartbeat" /disable 2>nul >nul
cls
echo.
set /p choice=Reboot pc? Y or N
if /i "%choice%"=="y" (
echo Rebooting in 10 seconds. Press any key to cancel.
timeout -t 4 |findstr "\<0\>" && shutdown -r -t 0 -f || echo cancelled
) else (
exit
)
pause