winpe 3.0 修改为pecmd为默认启动方法(注册表)

WinPe 3.0修改方法:

1、打开注册表程序-->选中HKEY_USERS项--->打开文件-->选中加载配置单元文件--->将system注册表文件加载到注册表程序中,加载名称winpe;

2、展开HKEY_USERS\winpe\Setup下有,将“CmdLine“的启动值修改为PECMD.EXE MAIN PECMD.INI;

3、选中winpe--->打开文件--->卸载配置单元。将加载的注册表文件卸载,至此注册表已经被修改保存;

下次自动最开始执行PECMD.EXE程序。

 

WinPe 2.0修改方法:

1、在SYSTEM32目录下存在默认的注册表文件:SETUPREG.HI_,使用winrar加压得到SETUPREG.HIV文件;

2、打开注册表程序-->选中HKEY_USERS项--->打开文件-->选中加载配置单元文件--->将SETUPREG.HIV注册表文件加载到注册表程序中,加载名称winpe;

3、展开HKEY_USERS\winpe\Setup下有,将“CmdLine“的启动值修改为PECMD.EXE MAIN %SystemRoot%\SYSTEM32\PECMD.INI;

3、选中winpe--->打开文件--->卸载配置单元。将加载的注册表文件卸载,至此注册表已经被修改保存;

4、使用makecab命令将SETUPREG.HIV重新压缩为SETUPREG.HI_即可。命令格式:makecab /d compressiontype=lzx /d compressionmemory=21 SETUPREG.HIV 

 

Makecab命令说明:

Cabinet Maker - Lossless Data Compression Tool

MAKECAB [/V[n]] [/D var=value ...] [/L dir] source [destination]
MAKECAB [/V[n]] [/D var=value ...] /F directive_file [...]

  source         File to compress.
  destination    File name to give compressed file.  If omitted, the
                 last character of the source file name is replaced
                 with an underscore (_) and used as the destination.
  /F directives  A file with MakeCAB directives (may be repeated). Refer to
                 Microsoft Cabinet SDK for information on directive_file.
  /D var=value   Defines variable with specified value.
  /L dir         Location to place destination (default is current directory).
  /V[n]          Verbosity level (1..3).

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值