18 lines
1.2 KiB
Batchfile
18 lines
1.2 KiB
Batchfile
pushd "%~dp0"
|
|
dir /b %SystemRoot%\servicing\Packages\*Hyper-V*.mum >hyper-v.txt
|
|
for /f %%i in ('findstr /i . hyper-v.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i"
|
|
del hyper-v.txt
|
|
Dism /online /enable-feature /featurename:Microsoft-Hyper-V -All /LimitAccess /ALL
|
|
pushd "%~dp0"
|
|
dir /b %SystemRoot%\servicing\Packages\*containers*.mum >containers.txt
|
|
for /f %%i in ('findstr /i . containers.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i"
|
|
del containers.txt
|
|
Dism /online /enable-feature /featurename:Containers -All /LimitAccess /ALL
|
|
pushd "%~dp0"
|
|
dir /b %SystemRoot%\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientExtensions-Package~3*.mum >gpedit.txt
|
|
dir /b %SystemRoot%\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientTools-Package~3*.mum >>gpedit.txt
|
|
for /f %%i in ('findstr /i . gpedit.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i"
|
|
del gpedit.txt
|
|
REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /f /v EditionID /t REG_SZ /d "Professional"
|
|
REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /f /v ProductName /t REG_SZ /d "Windows 10 Pro"
|