MDT rules实用

[Settings]
Priority=Default
Properties=MyCustomProperty

[Default]
OSInstall=Y
SkipBDDWelcome=YES
SkipCapture=YES
SkipProductKey=YES
SkipComputerBackup=YES
SkipBitLocker=YES

;是否跳过恢复用户数据
SkipUserData=YES
SkipDataLocation=NONE

SkipAdminPassword=YES
;adminpassword=

;配置计算机名(默认随机),默认加域,可选择不加域,默认使用连接deploymentshare共享的账号加域
SkipComputerName=NO
;ComputerName=*

SkipDomainMembership=NO
JoinDomain=u.y.com
domainAdmin=mdt-user
DomainAdminDomain=uxy
DomainAdminPassword=password

;JoinWorkgroup=WORKGROUP

;跳过TS,选择001
SkipTaskSequence=YES
TaskSequenceID=001

;是否跳过应用程序安装
SkipApplications=YES
SkipAppsOnUpgrade=YES


;是否跳过设置本地地区
SkipLocaleSelection=YES

;是否跳过设置时区
SkipTimeZone=YES
TimeZoneName=China Standard Time

;指定语言、输入法
SkipLocaleSelection=YES
UILanguage=zh-cn
UserLocale=zh-cn
KeyBoardLocale=zh-cn

;是否跳过系统部署完成后的最后总结
SkipSummary=YES
SkipFinalSummary=NO

;FinishAction=Shutdown

EventService=http://MDT:9800

 =============================================================

Bootstrap.ini

[Settings]
Priority=Default

[Default]
DeployRoot=\10.10.4.4DeploymentShare$  
UserID=MDT-User  #默认连接到DeployRoot实用的账号
UserDomain=uy
UserPassword=password

KeyboardLocale=en-us
SkipBDDWelcome=YES

=============================================================

安装完成后自动安装应用程序:

1.先在Applications里面新建,要求程序支持静默安装即可(比如批处理、Office等)

Office2016静默安装配置文件,可以使用 setup.exe /admin编辑,编辑后使用命令 setup.exe /adminfile office2016config.msp /config office2016config.MSP.xml

2.在TS的State Restore里面添加 Install  Application,选择前面创建好的Application即可。

导入驱动:

1.在Out-of-Box Drivers下面新建文件夹,然后通过驱动精灵备份好的驱动直接导入即可。

wmic computersystem get manufacturer #查询制造商,文件夹以此命名

wmic computersystem get model #查询计算机型号,文件夹以此命名(如果需要按型号分类驱动,此处只是以制造商粗略分类,将同一品牌下驱动都导入到一个文件夹里了)

2.Preinstall下,选中Configure,然后Add Set Task Sequence Variable(该项会新加到Configure下面),Variable:DriverGroup001,Value:Windows10\%Make% 或者Windows10\%Make%\%Model%(此处没有使用%Model%)

然后Inject Drivers,profile选中Nothing,Install matching

格式化磁盘分区:

系统盘100G,剩余空间全部为D盘

连接WSUS:

在rules中添加:WSUSServer=http://10.10.2.3:8530 即可,然后Postinstall任务序列启用Windows Update任务。

如果一直停留在 Searching updates,则需要先对OS安装KB3172605补丁

运行PowerShell脚本:%SCRIPTROOT% est.ps1     xcopy "%DEPLOYROOT%customfile

mdt bug调试:
cscript.exe x:deployscriptslitetouch.wsf /debug:true /debugcapture

原文地址:https://www.cnblogs.com/dreamer-fish/p/11792269.html