Loading

WDS+MDT网络启动自动部署windows(六)rules bootstrip.ini

简介

这就是自动化的关键一步。

自动化规则,启动脚本。

关键是设置共享文件夹属性中的Rules标签。

设置rules bootstrap.ini

这里有个手动运行所有向导,生成的参数,

似乎有用的就下面四项。

UILanguage=zh-cn

UserLocale=zh-cn

KeyboardLocale=zh-cn;0804:00000804

TimeZoneName=China Standard Time

 

官方文档

CustomizingMDTConfigurationFiles | Microsoft Learn

providing-properties-for-skipped-deployment-wizard-pages| Microsoft Learn

官方示例

分步 - 使用 MDT 在测试实验室中部署 Windows 10 - Windows 10 |Microsoft学习

fully-automated-lti-deployment-for-a-refresh-computer-scenario| Microsoft Learn

fully-automated-lti-deployment-for-a-new-computer-scenario | Microsoft Learn

fully-automated-lti-deployment-scenario | Microsoft Learn

Step by step - Deploy Windows 10 in a test lab using MDT - Windows 10 | Microsoft Learn 微软示例

能找到的就这么多个示例文件了。

这里有个Bootstap.ini的示例,看起来就是网络连接参数。

配置实操

配置共享名:

UserDomain:似乎是netbios域名,示例是const

[Settings]
Priority=Default

[Default]
DeployRoot=\\wds\deploymentshare$
UserDomain=JACK
UserID=mdt
UserPassword=pass@1234
SkipBDDWelcome=YES

 在看一下所有可跳过,具体属性都做了超链。逐条配置看看。

table-6-deployment-wizard-pages | Microsoft Learn

Skip this wizard page跳过的页Using this property使用的属性Configure these properties需配置的属性配置位置

Welcome

欢迎页

SkipBDDWelcome=YES   bootstrap.ini

Specify credentials for connecting to network shares

跳过网络连接参数

Skipped by providing properties in next column

通过提供右边的参数来自动跳过

- UserID

- UserDomain

- UserPassword
bootstrap.ini

Task Sequence

任务序号

SkipTaskSequence=NO

一般不设置跳过序号,不同序号的任务目前主要用来区分硬盘,单盘单区,单盘双区,双盘双区,手动分区

- TaskSequenceID  

Computer Details

电脑信息

SkipComputerName,

跳过计算机名,不填似乎也有个计算机名,先试试

SkipDomainMembership

跳过加入域

- OSDComputerName

- JoinWorkgroup

-or-

- JoinDomain

- DomainAdmin
 

User Data

用户数据

SkipUserData

没感觉有什么用。

- UDDir

- UDShare

- UserDataLocation
 

Move Data and Settings

移动数据和设置

SkipUserData - UDDir

- UDShare

- UserDataLocation
 

User Data (Restore)

恢复数据和设置

SkipUserData - UDDir

- UDShare

- UserDataLocation
 

Computer Backup

电脑备份?

SkipComputerBackup

暂时不考虑

- BackupDir

- BackupShare

- ComputerBackupLocation
 

Product Key

产品密钥

SkipProductKey

使用的是大客户版,不换序号。

- ProductKey

-or-

- OverrideProductKey
 

Language Packs

语言包

SkipPackageDisplay

语言包?怎么设置?

LanguagePacks  

Locale and Time

区域位置和时间

SkipLocaleSelection, SkipTimeZone

前面手动想到生成过。

- KeyboardLocale

- UserLocale

- UILanguage

- TimeZoneName
 

Roles and Features

角色和功能

SkipRoles

自动安装服务器的设置,

- OSRoles

- OSRoleServices

- OSFeatures
 

Applications

应用

SkipApplications

mdt添加程序的安装列表

Applications  

Administrator Password

管理员密码

SkipAdminPassword

本地管理员密码,不设置会

AdminPassword  

Local Administrators

本地管理员

SkipAdminAccounts

添加本地管理员列表

- Administrators  

Capture Image

捕获镜像

SkipCapture

存储备份镜像的路径。

- ComputerBackupLocation  

Bitlocker

数字加密锁

慎用

SkipBitLocker - BDEDriveLetter

- BDEDriveSize

- BDEInstall

- BDEInstallSuppress

- BDERecoveryKey

- TPMOwnerPassword

- OSDBitLockerStartupKeyDrive

- OSDBitLockerWaitForEncryption
 

Ready to begin

准备开始

SkipSummary -  

Operating system deployment completed successfully

部署成功

SkipFinalSummary -  

Operating system deployment did not complete successfully

部署不成功

SkipFinalSummary -  


其他有用的设置

finishaction| Microsoft Learn

安装完成重启  FinishAction=REBOOT     配置 rules  CustomSettings.ini

deployroot | Microsoft Learn

MDT共享目录位置,  DeployRoot=\\wds\depolymentshare$       配置 bootstrap.ini

slshare| Microsoft Learn

在部署过程结束时存储部署日志的网络共享文件夹。

SLShare=\\NYC-AM-FIL-01\Logs$   配置 rules  CustomSettings.ini

slsharedynamiclogging| Microsoft Learn

在部署期间应将所有 MDT 日志写入其中的网络共享文件夹。这仅用于高级实时调试。

SLShareDynamicLogging=\\NYC-AM-FIL-01\Logs$    配置 rules  CustomSettings.ini

暂时设置

下面这部分是加域的参数。

SkipDomainMembership=YES
JoinDomain=jack.local
DomainAdmin=administrator
DomainAdminDomain=jack.local
DomainAdminPassword=*******

 

下面这是设置终端的本地管理员密码,不设也不安全。

SkipAdminPassword=YES
AdminPassword=*********

 

[Settings]
Priority=Default
Properties=MyCustomProperty


[Default]
OSInstall=Y


SkipTaskSequence=NO


SkipComputerName=YES


SkipDomainMembership=YES
JoinDomain=jack.local
DomainAdmin=administrator
DomainAdminDomain=jack.local
DomainAdminPassword=*******


SkipUserData=YES


SkipComputerBackup=YES


SkipProductKey=YES


SkipPackageDisplay=YES


SkipLocaleSelection=YES
KeyboardLocale=zh-cn;0804:00000804
UserLocale=zh-cn
UILanguage=zh-cn


SkipTimeZone=YES
TimeZoneName=China Standard Time


SkipRoles=YES


SkipApplications=YES


SkipAdminPassword=YES
AdminPassword=*********


SkipAdminAccounts=YES


SkipCapture=YES


SkipBitLocker=YES


SkipSummary=YES


SkipFinalSummary=YES


FinishAction=REBOOT


 

 
posted @ 2024-04-14 14:48  上官飞鸿  阅读(30)  评论(0编辑  收藏  举报