windows: 禁用 win10/11 保留空间

This commit is contained in:
bin456789 2024-05-29 21:30:20 +08:00
parent 895c9137ee
commit 43f6b19eeb
No known key found for this signature in database
GPG Key ID: EE301B386DE6C11B

View File

@ -29,7 +29,7 @@
<!-- <RunSynchronous>
<RunSynchronousCommand wcm:action="add">
<Order>1</Order>
<Path>cmd /c for %a in (CPU RAM SecureBoot Storage TPM) do reg add HKLM\SYSTEM\Setup\LabConfig /t REG_DWORD /v Bypass%aCheck /d 1 /f</Path>
<Path>cmd /c for %a in (CPU RAM SecureBoot Storage Disk TPM) do reg add HKLM\SYSTEM\Setup\LabConfig /t REG_DWORD /v Bypass%aCheck /d 1 /f</Path>
</RunSynchronousCommand>
</RunSynchronous> -->
</component>
@ -82,6 +82,14 @@
<!-- https://learn.microsoft.com/archive/technet-wiki/13813.localized-names-for-administrator-account-in-windows -->
<Path>cmd /c "for %a in (Administrator Administrador Administrateur Administratör Администратор Järjestelmänvalvoja Rendszergazda) do (net user %a /active:yes &amp;&amp; exit)"</Path>
</RunSynchronousCommand>
<!-- 禁用保留空间 -->
<RunSynchronousCommand wcm:action="add">
<Order>5</Order>
<Path>reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\ReserveManager /v ShippedWithReserves /t REG_DWORD /d 0 /f</Path>
<!-- 此时以下命令无效 -->
<!-- <Path>DISM /Online /Set-ReservedStorageState /State:Disabled</Path> -->
<!-- <Path>powershell "Set-WindowsReservedStorageState -State Disabled; exit"</Path> -->
</RunSynchronousCommand>
<!-- win7 在此阶段找不到网卡 -->
<!-- <RunSynchronousCommand wcm:action="add">
<Order>5</Order>