<PE>自动回应

一使用Unattend.xml

           那使用自动回应档Unattend.xml。因为Windows提供一套完整的自动配置和部署系统。这是可以使用答案文件和 Windows PE 来指定不同的设置和操作。Windows PE 启动时,它会在任何可启动设备(例如 USB 闪存驱动器或软盘)的根目录中隐式查找名为 Unattend.xml 的文件。

 1 <settings pass="auditUser">
 2         <component name="Microsoft-Windows-Deployment" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 3             <RunSynchronous>
 4                 <RunSynchronousCommand wcm:action="add">
 5                     <Order>1</Order>
 6                     <Path>regedit /s "C:\Windows\Panther\OEM\SilentInAuditMode.reg"</Path>
 7                 </RunSynchronousCommand>
 8                 <RunSynchronousCommand wcm:action="add">
 9                     <Order>2</Order>
10                     <Path>cmd /c %windir%\Panther\OEM\SilentInAuditUser.vbs</Path>
11                 </RunSynchronousCommand>
12             </RunSynchronous>
13         </component>
14     </settings>

二使用Startnet.cmd
             可以使用 Startnet.cmd 在 Windows PE 中添加自定义命令行脚本。Startnet.cmd 当前可启动 Wpeinit.exe。Wpeinit.exe 专门安装即插即用设备、处理 Unattend.xml 设置以及加载网络资源。也可以使用 Startnet.cmd 和 Wpeinit.exe 来指定 Unattend.xml 文件。

ECHO X:\winpe-F3.vbs > %tmp_WinPE_Disk%\mount\Windows\System32\Startnet.cmd
TYPE %tmp_WinPE_Disk%\mount\Windows\System32\Startnet.cmd

三使用 Winpeshl.ini
              可以使用名为 Winpeshl.ini 的文件来启动自定义外壳应用程序。Winpeshl.exe 将在启动期间处理 Winpeshl.ini 中的设置。如果创建自定义 Winpeshl.ini 并需要即插即用或网络支持,则必须包括对 Wipeinit.exe 的调用。Wpeinit.exe 会专门安装即插即用设备、处理 Unattend.xml 设置以及加载网络资源。

1 [LaunchApp]
2 AppPath = %SYSTEMDRIVE%\myshell.exe
3 [LaunchApps]
4 %SYSTEMDRIVE%\mydir\application1.exe, -option1 -option2
5 application2.exe, -option1 -option2

四使用注册表
             在HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run 里,程序在启动时运行。

1 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
2 "01-SilentInAuditMode"="C:\\Windows\\Panther\\OEM\\SilentInAuditMode.vbs"
3 "02-generalize"="C:\\Windows\\Panther\\OEM\\generalize.vbs"


 

posted @ 2013-06-14 15:19  伍锋  阅读(421)  评论(0编辑  收藏  举报