Remove defrag
This commit is contained in:
@@ -3,14 +3,6 @@ if not exist "C:\Windows\Temp\7z1900-x64.msi" (
|
|||||||
)
|
)
|
||||||
msiexec /qb /i C:\Windows\Temp\7z1900-x64.msi
|
msiexec /qb /i C:\Windows\Temp\7z1900-x64.msi
|
||||||
|
|
||||||
if not exist "C:\Windows\Temp\ultradefrag.zip" (
|
|
||||||
powershell -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; (New-Object System.Net.WebClient).DownloadFile('https://downloads.sourceforge.net/project/ultradefrag/stable-release/6.1.0/ultradefrag-portable-6.1.0.bin.amd64.zip', 'C:\Windows\Temp\ultradefrag.zip')" <NUL
|
|
||||||
)
|
|
||||||
|
|
||||||
if not exist "C:\Windows\Temp\ultradefrag-portable-6.1.0.amd64\udefrag.exe" (
|
|
||||||
cmd /c ""C:\Program Files\7-Zip\7z.exe" x C:\Windows\Temp\ultradefrag.zip -oC:\Windows\Temp"
|
|
||||||
)
|
|
||||||
|
|
||||||
if not exist "C:\Windows\Temp\SDelete.zip" (
|
if not exist "C:\Windows\Temp\SDelete.zip" (
|
||||||
powershell -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; (New-Object System.Net.WebClient).DownloadFile('https://download.sysinternals.com/files/SDelete.zip', 'C:\Windows\Temp\SDelete.zip')" <NUL
|
powershell -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; (New-Object System.Net.WebClient).DownloadFile('https://download.sysinternals.com/files/SDelete.zip', 'C:\Windows\Temp\SDelete.zip')" <NUL
|
||||||
powershell -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; (New-Object System.Net.WebClient).DownloadFile('https://vagrantboxes.blob.core.windows.net/box/sdelete/v1.6.1/sdelete.exe', 'C:\Windows\Temp\sdelete.exe')" <NUL
|
powershell -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; (New-Object System.Net.WebClient).DownloadFile('https://vagrantboxes.blob.core.windows.net/box/sdelete/v1.6.1/sdelete.exe', 'C:\Windows\Temp\sdelete.exe')" <NUL
|
||||||
@@ -27,6 +19,5 @@ rmdir /S /Q C:\Windows\SoftwareDistribution\Download
|
|||||||
mkdir C:\Windows\SoftwareDistribution\Download
|
mkdir C:\Windows\SoftwareDistribution\Download
|
||||||
net start wuauserv
|
net start wuauserv
|
||||||
|
|
||||||
start /wait C:\Windows\Temp\ultradefrag-portable-6.1.0.amd64\udefrag.exe --optimize --repeat C:
|
|
||||||
cmd /c %SystemRoot%\System32\reg.exe ADD HKCU\Software\Sysinternals\SDelete /v EulaAccepted /t REG_DWORD /d 1 /f
|
cmd /c %SystemRoot%\System32\reg.exe ADD HKCU\Software\Sysinternals\SDelete /v EulaAccepted /t REG_DWORD /d 1 /f
|
||||||
cmd /c C:\Windows\Temp\sdelete.exe -q -z C:
|
cmd /c C:\Windows\Temp\sdelete.exe -q -z C:
|
||||||
|
|||||||
Reference in New Issue
Block a user