if not exist "C:\Windows\Temp\7z1900-x64.msi" ( powershell -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; (New-Object System.Net.WebClient).DownloadFile('https://www.7-zip.org/a/7z1900-x64.msi', 'C:\Windows\Temp\7z1900-x64.msi')" nul 2>&1 rmdir /S /Q C:\Windows\SoftwareDistribution\Download mkdir C:\Windows\SoftwareDistribution\Download net start wuauserv 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: