kms cannot be removed with dism in online mode

This commit is contained in:
Michael H.G. Schmidt 2023-02-09 11:12:23 +01:00
parent a68231ace9
commit 09bc040957

View File

@ -29,12 +29,10 @@ echo Hiding activation menu in windows settings app ...
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Policies\Explorer" ^ reg add "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Policies\Explorer" ^
/v SettingsPageVisibility /t REG_SZ /D "hide:activation" /f /v SettingsPageVisibility /t REG_SZ /D "hide:activation" /f
echo Removing KMS packages with DISM
dism /online /quiet /remove-package /PackageName:Microsoft-Windows-ServerMgmt-ActivationKMS-Package~31bf3856ad364e35~amd64~~10.0.0.0
echo Removing the missing activation watermark on desktop (System) ... echo Removing the missing activation watermark on desktop (System) ...
bcdedit /set TESTSIGNING OFF bcdedit /set TESTSIGNING OFF
echo. echo.
echo ####### %0 ####### echo ####### %0 #######
pause pause