-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSpeedUpAutoQuick.bat
More file actions
360 lines (323 loc) · 18.3 KB
/
Copy pathSpeedUpAutoQuick.bat
File metadata and controls
360 lines (323 loc) · 18.3 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
@echo off
CLS
mode con:cols=56 lines=9
::Check_Permissions
net session >nul 2>&1
if %errorLevel% == 0 (
Echo ********************************************************
Echo ***** Administrative permissions confirmed *****
) else (
Color 4F
Echo ********************************************************
Echo ***** Failure: Current permissions inadequate *****
Echo ***** You need Administrative permissions *****
Echo ***** for this to work properly *****
Echo ********************************************************
Echo.
Pause
Color 7
)
mode con:cols=56 lines=220
:: Start
Set SYear=%date:~10,4%
Set SMonth=%date:~4,2%
Set SDay=%date:~7,2%
Set StartTime=%Time:~0,5%
Echo.
Echo ********************************************************
Echo ***** ---This will take 20 minutes to 4 hours--- *****
Echo ***** *****
Echo ***** Deleting Temp Files *****
Echo ***** Start Disk Cleanup *****
Echo ***** Check Windows System Files *****
Echo ***** Start System Maintenance *****
Echo ***** Clear any print jobs and restart the spooler *****
Echo ***** Disable Multicasting *****
Echo ***** Flush DNS and reset IP Stack *****
Echo ***** Check the Gateway and DNS Servers *****
Echo ***** Sync time to the Internet *****
Echo ***** Enable and Create Restore Point *****
Echo ***** Schedule the Restore Point every 63 days *****
Echo ***** *****
Echo ***** Start Time %SDay%-%SMonth%-%SYear% %StartTime%
Echo ***** Start Time %SDay%-%SMonth%-%SYear% %StartTime% >C:\Windows\Temp\SpeedUpAuto%SDay%-%SMonth%-%SYear%.txt
Echo ********************************************************
Echo **** Log file located at *****
Echo %temp%\SpeedUpAuto%SDay%-%SMonth%-%SYear%.txt
ping -n 1 127.0.0.1 >nul: 2>nul:
:: Deleting Temp Files
Set TTime=%Time:~0,5%
Echo ********************************************************
Echo ***** Deleting Temp Files *****
Echo ***** Deleting Temp Files ***** >>C:\Windows\Temp\SpeedUpAuto%SDay%-%SMonth%-%SYear%.txt
Echo ***** 1 to 5 Minutes *****
Echo ***** Time %TTime%
Echo ********************************************************
ping -n 2 127.0.0.1 >nul: 2>nul:
del /s /f /q %USERPROFILE%\appdata\local\temp\*.* >>C:\Windows\Temp\SpeedUpAuto%SDay%-%SMonth%-%SYear%.txt 2>>NUL
ping -n 2 127.0.0.1 >nul: 2>nul:
copy C:\Windows\Temp\SpeedUpAuto%SDay%-%SMonth%-%SYear%.txt %temp%\SpeedUpAuto%SDay%-%SMonth%-%SYear%.txt >NUL 2>>NUL
ping -n 2 127.0.0.1 >nul: 2>nul:
del /s /f /q %userprofile%\Recent\*.* >>%temp%\SpeedUpAuto%SDay%-%SMonth%-%SYear%.txt 2>>%temp%\SpeedUpAutoErrors%SDay%-%SMonth%-%SYear%.txt
ping -n 2 127.0.0.1 >nul: 2>nul:
del /s /f /q C:\Windows\Prefetch\*.* >>%temp%\SpeedUpAuto%SDay%-%SMonth%-%SYear%.txt 2>>%temp%\SpeedUpAutoErrors%SDay%-%SMonth%-%SYear%.txt
ping -n 2 127.0.0.1 >nul: 2>nul:
del /s /f /q C:\Windows\Temp\*.* >>%temp%\SpeedUpAuto%SDay%-%SMonth%-%SYear%.txt 2>>%temp%\SpeedUpAutoErrors%SDay%-%SMonth%-%SYear%.txt
ping -n 2 127.0.0.1 >nul: 2>nul:
del /s /f /q %USERPROFILE%\appdata\local\Microsoft\Windows\INetCache\*.* >>%temp%\SpeedUpAuto%SDay%-%SMonth%-%SYear%.txt 2>>%temp%\SpeedUpAutoErrors%SDay%-%SMonth%-%SYear%.txt
ping -n 2 127.0.0.1 >nul: 2>nul:
del /s /f /q C:\Windows\Logs\CBS\*.* >>%temp%\SpeedUpAuto%SDay%-%SMonth%-%SYear%.txt 2>>%temp%\SpeedUpAutoErrors%SDay%-%SMonth%-%SYear%.txt
ping -n 2 127.0.0.1 >nul: 2>nul:
:: Clear Temporary Internet File
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 8 >>%temp%\SpeedUpAuto%SDay%-%SMonth%-%SYear%.txt 2>>%temp%\SpeedUpAutoErrors%SDay%-%SMonth%-%SYear%.txt
ping -n 2 127.0.0.1 >nul: 2>nul:
:: Clear Cookies:
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 2 >>%temp%\SpeedUpAuto%SDay%-%SMonth%-%SYear%.txt 2>>%temp%\SpeedUpAutoErrors%SDay%-%SMonth%-%SYear%.txt
ping -n 2 127.0.0.1 >nul: 2>nul:
:: Start Disk Cleanup
Set TTime=%Time:~0,5%
Echo ***** Start Disk Cleanup *****
Echo ***** Start Disk Cleanup ***** >>%temp%\SpeedUpAuto%SDay%-%SMonth%-%SYear%.txt
Echo ***** 1 to 15 Minutes *****
Echo ***** Time %TTime%
Echo ********************************************************
c:\windows\SYSTEM32\cleanmgr /d C /verylowdisk
ping -n 10 127.0.0.1 >nul: 2>nul:
:: Check Windows System Files
Set TTime=%Time:~0,5%
Echo ***** Check Windows System Files, 4 checks *****
Echo ***** Check Windows System Files, 4 checks ***** >>%temp%\SpeedUpAuto%SDay%-%SMonth%-%SYear%.txt
Echo ***** 5 Minutes to 2 Hours *****
Echo ***** Time %TTime%
Echo ***** *****
::
sfc /scannow >>%temp%\SpeedUpAuto%SDay%-%SMonth%-%SYear%.txt 2>>%temp%\SpeedUpAutoErrors%SDay%-%SMonth%-%SYear%.txt
Set TTime=%Time:~0,5%
Echo ***** Check #1 Done %TTime% *****
ping -n 1 127.0.0.1 >nul: 2>nul:
::
DISM /Online /Cleanup-Image /CheckHealth >>%temp%\SpeedUpAuto%SDay%-%SMonth%-%SYear%.txt 2>>%temp%\SpeedUpAutoErrors%SDay%-%SMonth%-%SYear%.txt
Set TTime=%Time:~0,5%
Echo ***** Check #2 Done %TTime% *****
ping -n 1 127.0.0.1 >nul: 2>nul:
::
DISM /Online /Cleanup-Image /ScanHealth >>%temp%\SpeedUpAuto%SDay%-%SMonth%-%SYear%.txt 2>>%temp%\SpeedUpAutoErrors%SDay%-%SMonth%-%SYear%.txt
Set TTime=%Time:~0,5%
Echo ***** Check #3 Done %TTime% *****
ping -n 1 127.0.0.1 >nul: 2>nul:
::
DISM /Online /Cleanup-Image /RestoreHealth >>%temp%\SpeedUpAuto%SDay%-%SMonth%-%SYear%.txt 2>>%temp%\SpeedUpAutoErrors%SDay%-%SMonth%-%SYear%.txt
Set TTime=%Time:~0,5%
Echo ***** Check #4 Done %TTime% *****
Echo ********************************************************
ping -n 1 127.0.0.1 >nul: 2>nul:
:: Start System Maintenance Silent
Set TTime=%Time:~0,5%
Echo ***** Starting System Maintenance *****
Echo ***** Starting System Maintenance ***** >>%temp%\SpeedUpAuto%SDay%-%SMonth%-%SYear%.txt
Echo ***** 2 Minutes, then will run in the background *****
Echo ***** Time %TTime%
Echo ********************************************************
ping -n 2 127.0.0.1 >nul: 2>nul:
:: Enable Auto Maintenance
REG ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\Maintenance" /V "MaintenanceDisabled" /T REG_DWORD /D "0" /f >>%temp%\SpeedUpAuto%SDay%-%SMonth%-%SYear%.txt 2>>%temp%\SpeedUpAutoErrors%SDay%-%SMonth%-%SYear%.txt
ping -n 2 127.0.0.1 >nul: 2>nul:
:: Start Maintenance
MSchedExe.exe Start >>%temp%\SpeedUpAuto%SDay%-%SMonth%-%SYear%.txt 2>>%temp%\SpeedUpAutoErrors%SDay%-%SMonth%-%SYear%.txt
ping -n 120 127.0.0.1 >nul: 2>nul:
:: Clear any print jobs and restart the spooler
Set TTime=%Time:~0,5%
Echo ***** Clear any print jobs and restart the spooler *****
Echo ***** Clear any print jobs and restart the spooler ***** >>%temp%\SpeedUpAuto%SDay%-%SMonth%-%SYear%.txt
Echo ***** 1 Minute *****
Echo ***** Time %TTime%
Echo ********************************************************
:$reference https://www.dostips.com/
:$reference https://support.microsoft.com/kb/946737
net stop spooler /y >>%temp%\SpeedUpAuto%SDay%-%SMonth%-%SYear%.txt 2>>%temp%\SpeedUpAutoErrors%SDay%-%SMonth%-%SYear%.txt
del "%systemroot%\system32\spool\printers\*.shd" >>%temp%\SpeedUpAuto%SDay%-%SMonth%-%SYear%.txt 2>>%temp%\SpeedUpAutoErrors%SDay%-%SMonth%-%SYear%.txt
del "%systemroot%\system32\spool\printers\*.spl" >>%temp%\SpeedUpAuto%SDay%-%SMonth%-%SYear%.txt 2>>%temp%\SpeedUpAutoErrors%SDay%-%SMonth%-%SYear%.txt
net start spooler >>%temp%\SpeedUpAuto%SDay%-%SMonth%-%SYear%.txt 2>>%temp%\SpeedUpAutoErrors%SDay%-%SMonth%-%SYear%.txt
ping -n 3 127.0.0.1 >nul: 2>nul:
:: Disable Multicasting
Set TTime=%Time:~0,5%
Echo ***** Disable Multicasting *****
Echo ***** Disable Multicasting ***** >>%temp%\SpeedUpAuto%SDay%-%SMonth%-%SYear%.txt
Echo ***** 1 Minute *****
Echo ***** Time %TTime%
Echo ********************************************************
netsh int ipv4 set global multicastforwarding=disabled >>%temp%\SpeedUpAuto%SDay%-%SMonth%-%SYear%.txt 2>>%temp%\SpeedUpAutoErrors%SDay%-%SMonth%-%SYear%.txt
ping -n 3 127.0.0.1 >nul: 2>nul:
:: Flush DNS and reset IP Stack
Set TTime=%Time:~0,5%
Echo ***** Flush DNS and reset IP Stack *****
Echo ***** Flush DNS and reset IP Stack ***** >>%temp%\SpeedUpAuto%SDay%-%SMonth%-%SYear%.txt
Echo ***** 2 Minutes *****
Echo ***** Time %TTime%
Echo ********************************************************
ipconfig /flushdns >>%temp%\SpeedUpAuto%SDay%-%SMonth%-%SYear%.txt 2>>%temp%\SpeedUpAutoErrors%SDay%-%SMonth%-%SYear%.txt
ping -n 4 127.0.0.1 >nul: 2>nul:
netsh winsock reset >>%temp%\SpeedUpAuto%SDay%-%SMonth%-%SYear%.txt 2>>%temp%\SpeedUpAutoErrors%SDay%-%SMonth%-%SYear%.txt
ping -n 4 127.0.0.1 >nul: 2>nul:
:: The following lines have been commented out because, if the PC has a static IP it will loose it's network connection.
:: netsh int ip reset >>%temp%\SpeedUpAuto%SDay%-%SMonth%-%SYear%.txt 2>>%temp%\SpeedUpAutoErrors%SDay%-%SMonth%-%SYear%.txt
:: ping -n 4 127.0.0.1 >nul: 2>nul:
:: ipconfig /release >>%temp%\SpeedUpAuto%SDay%-%SMonth%-%SYear%.txt 2>>%temp%\SpeedUpAutoErrors%SDay%-%SMonth%-%SYear%.txt
:: ping -n 4 127.0.0.1 >nul: 2>nul:
:: ipconfig /renew >>%temp%\SpeedUpAuto%SDay%-%SMonth%-%SYear%.txt 2>>%temp%\SpeedUpAutoErrors%SDay%-%SMonth%-%SYear%.txt
ping -n 3 127.0.0.1 >nul: 2>nul:
:: Check the Gateway and DNS Servers
Set TTime=%Time:~0,5%
Echo ***** Check the Gateway and DNS Servers *****
Echo ***** Check the Gateway and DNS Servers ***** >>%temp%\SpeedUpAuto%SDay%-%SMonth%-%SYear%.txt
Echo ***** 1 Minute *****
Echo *****
setlocal enabledelayedexpansion
:: Find the gateway's IP address
for /f "tokens=2 delims=:" %%a in ('ipconfig ^| findstr "Default"') do set gateway=%%a
:: Remove any spaces from the gateway IP address
set gateway=!gateway: =!
:: Ping the gateway
IPconfig /all >>%temp%\SpeedUpAuto%SDay%-%SMonth%-%SYear%.txt
Echo ***** Pinging the Gateway *****
ping %gateway%
ping %gateway% >>%temp%\SpeedUpAuto%SDay%-%SMonth%-%SYear%.txt
:: Getting DNS Server address
for /f "tokens=2 delims=:" %%a in ('ipconfig /all ^| findstr /c:"DNS Servers"') do (
set dnsServer=%%a
Echo ***** DNS Server: !dnsServer!
set isIP=false
rem Check if it's an IPv4 address
for /f "tokens=1-4 delims=." %%b in ("!dnsServer!") do (
if "%%d" neq "" (
set isIP=true
)
)
rem Check if it's an IPv6 address
echo ***** !dnsServer! | findstr /c:"[::]" >nul
if !errorlevel!==0 (
set isIP=true
)
if !isIP!==true (
powershell -Command "& {(New-Object Net.Sockets.TcpClient).Connect('!dnsServer!', 53)}" >nul 2>&1
if !errorlevel!==0 (
Echo ***** Port 53 is open on !dnsServer!
Echo ***** Port 53 is open on !dnsServer! >>%temp%\SpeedUpAuto%SDay%-%SMonth%-%SYear%.txt
) else (
Echo ***** Port 53 is closed on !dnsServer!
Echo ***** Port 53 is closed on !dnsServer! >>%temp%\SpeedUpAuto%SDay%-%SMonth%-%SYear%.txt
)
) else (
Echo ***** DNS Server hostname, resolving to IP address... *****
Echo ***** DNS Server hostname, resolving to IP address... >>%temp%\SpeedUpAuto%SDay%-%SMonth%-%SYear%.txt
for /f "tokens=2 delims=[]" %%c in ('ping -n 1 !dnsServer! ^| findstr /c:"["') do (
set IPAddress=%%c
Echo ***** IP Address: !IPAddress!
powershell -Command "& {(New-Object Net.Sockets.TcpClient).Connect('!IPAddress!', 53)}" >nul 2>&1
if !errorlevel!==0 (
Echo ***** Port 53 is open on !IPAddress!
Echo ***** Port 53 is open on !IPAddress! >>%temp%\SpeedUpAuto%SDay%-%SMonth%-%SYear%.txt
) else (
Echo ***** Port 53 is closed on !IPAddress!
Echo ***** Port 53 is closed on !IPAddress! >>%temp%\SpeedUpAuto%SDay%-%SMonth%-%SYear%.txt
)
)
)
)
endlocal
Echo ***** Time %TTime%
Echo ********************************************************
:: Sync time to the Internet
Set TTime=%Time:~0,5%
Echo ***** Sync time to the Internet *****
Echo ***** Sync time to the Internet ***** >>%temp%\SpeedUpAuto%SDay%-%SMonth%-%SYear%.txt
Echo ***** 1 Minute *****
Echo ***** Time %TTime%
Echo ********************************************************
Set-TimeZone "Eastern Standard Time" >>%temp%\SpeedUpAuto%SDay%-%SMonth%-%SYear%.txt 2>>%temp%\SpeedUpAutoErrors%SDay%-%SMonth%-%SYear%.txt
net stop w32time >>%temp%\SpeedUpAuto%SDay%-%SMonth%-%SYear%.txt 2>>%temp%\SpeedUpAutoErrors%SDay%-%SMonth%-%SYear%.txt
w32tm /unregister >>%temp%\SpeedUpAuto%SDay%-%SMonth%-%SYear%.txt 2>>%temp%\SpeedUpAutoErrors%SDay%-%SMonth%-%SYear%.txt
w32tm /config /syncfromflags:manual /manualpeerlist:"0.pool.ntp.org 1.pool.ntp.org 2.pool.ntp.org 3.pool.ntp.org" >>%temp%\SpeedUpAuto%SDay%-%SMonth%-%SYear%.txt 2>>%temp%\SpeedUpAutoErrors%SDay%-%SMonth%-%SYear%.txt
w32tm /config /update >>%temp%\SpeedUpAuto%SDay%-%SMonth%-%SYear%.txt 2>>%temp%\SpeedUpAutoErrors%SDay%-%SMonth%-%SYear%.txt
w32tm /register >>%temp%\SpeedUpAuto%SDay%-%SMonth%-%SYear%.txt 2>>%temp%\SpeedUpAutoErrors%SDay%-%SMonth%-%SYear%.txt
net start w32time >>%temp%\SpeedUpAuto%SDay%-%SMonth%-%SYear%.txt 2>>%temp%\SpeedUpAutoErrors%SDay%-%SMonth%-%SYear%.txt
w32tm /resync /rediscover >>%temp%\SpeedUpAuto%SDay%-%SMonth%-%SYear%.txt 2>>%temp%\SpeedUpAutoErrors%SDay%-%SMonth%-%SYear%.txt
ping -n 3 127.0.0.1 >nul: 2>nul:
:: Create Restore Point
Set TTime=%Time:~0,5%
Echo ***** Enable and Create Restore Point *****
Echo ***** Enable and Create Restore Point ***** >>%temp%\SpeedUpAuto%SDay%-%SMonth%-%SYear%.txt
Echo ***** 5 Minutes *****
Echo ***** Time %TTime%
Echo ********************************************************
:: Enable system restore
Reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SystemRestore" /v DisableSR /t REG_DWORD /d 1 /f >>%temp%\SpeedUpAuto%SDay%-%SMonth%-%SYear%.txt 2>>%temp%\SpeedUpAutoErrors%SDay%-%SMonth%-%SYear%.txt
ping -n 1 127.0.0.1 >nul: 2>nul:
:: Create a Restore Point
Wmic.exe /Namespace:\\root\default Path SystemRestore Call CreateRestorePoint "Finished Speed Up Process", 100, 12 >>%temp%\SpeedUpAuto%SDay%-%SMonth%-%SYear%.txt 2>>%temp%\SpeedUpAutoErrors%SDay%-%SMonth%-%SYear%.txt
:: Check for any errors
if %errorlevel% neq 0 (
:: An error occurred, print an error message
echo An error occurred while creating the restore point.
echo An error occurred while creating the restore point. >>%temp%\SpeedUpAuto%SDay%-%SMonth%-%SYear%.txt 2>>%temp%\SpeedUpAutoErrors%SDay%-%SMonth%-%SYear%.txt
) else (
:: No error occurred, print a success message
echo The restore point was created successfully.
echo The restore point was created successfully. >>%temp%\SpeedUpAuto%SDay%-%SMonth%-%SYear%.txt 2>>%temp%\SpeedUpAutoErrors%SDay%-%SMonth%-%SYear%.txt
)
**********************
ping -n 300 127.0.0.1 >nul: 2>nul:
:: Schedule the Restore Point to run every 63 days if one does not exist called RestorePoint
Set TTime=%Time:~0,5%
Echo ***** Schedule the Restore Point every 63 days *****
Echo ***** Schedule the Restore Point every 63 days ***** >>%temp%\SpeedUpAuto%SDay%-%SMonth%-%SYear%.txt
Echo ***** 1 Minutes *****
Echo ***** Time %TTime%
Echo ********************************************************
schtasks /create /tn RestorePoint /tr "powershell.exe Checkpoint-Computer -Description RestorePoint" /sc daily /mo 63 /sd 12/31/2021 /st 22:00 /f /IT >>%temp%\SpeedUpAuto%SDay%-%SMonth%-%SYear%.txt 2>>%temp%\SpeedUpAutoErrors%SDay%-%SMonth%-%SYear%.txt
ping -n 3 127.0.0.1 >nul: 2>nul:
:: start notepad "%temp%\SpeedUpAuto%SDay%-%SMonth%-%SYear%.txt"
:: Done
Set TYear=%date:~10,4%
Set TMonth=%date:~4,2%
Set TDay=%date:~7,2%
Set StopTime=%Time:~0,5%
Echo.
Echo ********************************************************
Echo ***** Doing the last cleanup *****
Echo ***** Doing the last cleanup ***** >>%temp%\SpeedUpAuto%SDay%-%SMonth%-%SYear%.txt
Echo ***** 1 Minutes *****
Echo ***** Start Time %SDay%-%SMonth%-%SYear% %StartTime% >>%temp%\SpeedUpAuto%SDay%-%SMonth%-%SYear%.txt
Echo ***** Stop Time %TDay%-%TMonth%-%TYear% %StopTime% >>%temp%\SpeedUpAuto%SDay%-%SMonth%-%SYear%.txt
Echo ***** Start Time %SDay%-%SMonth%-%SYear% %StartTime%
Echo ***** Stop Time %TDay%-%TMonth%-%TYear% %StopTime%
Echo ********************************************************
ping -n 6 127.0.0.1 >nul: 2>nul
Echo ***** Rebooting in 2:00 minutes *****
ping -n 10 127.0.0.1 >nul: 2>nul
Echo ***** 1:50 *****
ping -n 10 127.0.0.1 >nul: 2>nul
Echo ***** 1:40 *****
ping -n 10 127.0.0.1 >nul: 2>nul
Echo ***** 1:30 *****
ping -n 101 127.0.0.1 >nul: 2>nul
Echo ***** 1:20 *****
ping -n 10 127.0.0.1 >nul: 2>nul
Echo ***** 1:10 *****
ping -n 10 127.0.0.1 >nul: 2>nul
Echo ***** 1:00 *****
ping -n 10 127.0.0.1 >nul: 2>nul
Echo ***** 0:50 *****
ping -n 10 127.0.0.1 >nul: 2>nul
Echo ***** 0:40 *****
ping -n 10 127.0.0.1 >nul: 2>nul
Echo ***** 0:30 *****
ping -n 10 127.0.0.1 >nul: 2>nul
Echo ***** 0:20 *****
ping -n 10 127.0.0.1 >nul: 2>nul
Echo ***** 0:10 *****
ping -n 10 127.0.0.1 >nul: 2>nul
Echo ***** Thank you *****
Echo ********************************************************
ping -n 3 127.0.0.1 >nul: 2>nul
shutdown /r /f /c "Speedup Process Completed" >>%temp%\SpeedUpAuto%SDay%-%SMonth%-%SYear%.txt 2>>%temp%\SpeedUpAutoErrors%SDay%-%SMonth%-%SYear%.txt