mirror of
https://github.com/bin456789/reinstall.git
synced 2025-01-19 04:49:13 +08:00
windows: 禁用 win10/11 保留空间
This commit is contained in:
parent
895c9137ee
commit
43f6b19eeb
10
windows.xml
10
windows.xml
@ -29,7 +29,7 @@
|
|||||||
<!-- <RunSynchronous>
|
<!-- <RunSynchronous>
|
||||||
<RunSynchronousCommand wcm:action="add">
|
<RunSynchronousCommand wcm:action="add">
|
||||||
<Order>1</Order>
|
<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>
|
</RunSynchronousCommand>
|
||||||
</RunSynchronous> -->
|
</RunSynchronous> -->
|
||||||
</component>
|
</component>
|
||||||
@ -82,6 +82,14 @@
|
|||||||
<!-- https://learn.microsoft.com/archive/technet-wiki/13813.localized-names-for-administrator-account-in-windows -->
|
<!-- 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 && exit)"</Path>
|
<Path>cmd /c "for %a in (Administrator Administrador Administrateur Administratör Администратор Järjestelmänvalvoja Rendszergazda) do (net user %a /active:yes && exit)"</Path>
|
||||||
</RunSynchronousCommand>
|
</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 在此阶段找不到网卡 -->
|
<!-- win7 在此阶段找不到网卡 -->
|
||||||
<!-- <RunSynchronousCommand wcm:action="add">
|
<!-- <RunSynchronousCommand wcm:action="add">
|
||||||
<Order>5</Order>
|
<Order>5</Order>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user