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.4\DeploymentShare$  
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%\test.ps1     xcopy "%DEPLOYROOT%\custom\file

mdt bug調試:
cscript.exe x:\deploy\scripts\litetouch.wsf /debug:true /debugcapture

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM