zoukankan      html  css  js  c++  java
  • Custom Settings.ini 和 bootstrap.ini 配置

    [Settings]
    Priority=Default
    Properties=MyCustomProperty

    [Default]

    ;SkipWizard=YES 如果跳过部署向导,则即使 SkipCapture=NO,也会被跳过,所以该项不要跳过

    ;是否允许部署OS到计算机
    OSInstall=YES

    ;是否跳过选择部署类型..表明目标电脑是台新电脑,没有加入过其他网络。这一属性可能出现的其他值是REFRESH,REPLACE和UPGRADE
    SkipDeploymentType=YES
    DeploymentType=NewComputer


    ;是否跳过捕获映像
    SkipCapture=YES

    ;设置本地管理员密码,此处密码优先级高于TS中的密码设置
    SkipAdminPassword=YES
    ;AdminPassword=123456

    ;忽略计算机名
    SkipComputerName=YES
    ;ComputerName=MDTClient01

    ;是否跳过加入域或工作组(忽略加入域的步骤,即默认为工作组)
    SkipDomainMembership=YES
    JoinWorkgroup=wtt
    JoinDomain=testj.com
    DomainAdmin=administrator
    DomainAdminDomain=testj.com
    MachineObjectOU=ou=services,ou=bladmin,dc=testj,dc=com
    DomainAdminPassword=lvluo

    ;是否跳过选择任务序列(指定任务序列ID)
    SkipTaskSequence=YES
    ;BuildID=006 在MDT2010中不需要指定该参数也可以成功
    TaskSequenceID=006


    ;跳过应用程序安装的选择,{}为应用程序的GUID,可以打开部署共享文件夹下的Controlapplications.xml文件查找
    SkipAppsOnUpgrade=YES
    SkipApplications=YES
    Applications1={64ba3c3a-aded-499c-97bd-c6f3d33de43d}
    ;Applications2={7e9d10a0-42ef-4a0a-9ee2-90eb2f4e4b98}

    ;跳过角色功能选择
    SkipRoles=YES
    ;OSFeatures=RSAT 此处设置还未测试成功
    ;跳过序列号设置选择
    SkipProductKey=YES
    ;ProductKey=
    ;跳过计算机备份设置选择
    SkipComputerBackup=YES
    ;跳过BitLocker设置选择
    SkipBitLocker=YES
    ;跳过恢复用户数据向导页
    SkipUserData=Yes
    UserDataLocation=NONE

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

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

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

    监视日志服务器设置
    ;EventService=http://192.168.12.1:9800

    ;是否跳过摘要界面(Ready to begin)
    SkipSummary=YES
    ;是否跳过完成摘要界面(部署成功/失败。注:在MDT2010 Beta 2中,如果TS失败了,还是会显示最终的总结画面)
    SkipFinalSummary=YES


    ;指定目标计算机部署完成后的动作( Shutdown、Restart或者Reboot、Logoff )
    FinishAction=Restart

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

    bootstrap.ini

    [Settings]
    Priority=Default

    [Default]
    DeployRoot=\192.168.12.1DeploymentShare$
    UserID=administrator
    UserPassword=lvluo
    UserDomain=testj


    ;是否跳过欢迎界面
    SkipBDDWelcome=YES
    ;设置键盘类型
    KeyboardLocale=en-US

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

    TS中调用执行PowerShell脚本运行方法:
    1.编写批处理调用.ps1脚本,批处理脚本内容如下:
    ::设置PowerShell执行策略为bypass,在直接运行位于远程计算机上的.ps1脚本时,unrestricted会出现提示
    powershell.exe Set-ExecutionPolicy bypass
    ::运行自动化配置脚本
    powershell.exe .psmdt.ps1
    powershell.exe Set-ExecutionPolicy unrestricted

    powershell.exe -executionpolicy bypass -noprofile -noninteractive -file "%~dp0InitDataDisk.ps1"    #bat运行当前目录下.ps1脚本方式

    2.新建应用程序,运行批处理脚本。源程序目录中不能包含有空格,否则ps1脚本不会运行
    3.新建TS,在State Restore中添加 Install Applications,选中新建的应用程序


          如果新建了TS、APP等,或修改了rules需要测试,直接Update后就可以,然后运行script目录下的LiteTouch.vbs即可选择TS运行。除非需要使用boot.iso进行测试才需要重新生产boot.iso
          TS:Post OS Installation Task Sequence:在OS中安装APP,只需要使用 Install Applications 任务即可,其他都可以删除。使用该TS可以有选择性的测试OS安装后任务

         DeploymentShare$ 属性中可以启用 多播(需要WDS的支持),启用后会自动在WDS中新建一个 多播 出来

  • 相关阅读:
    课堂作业04 2017.10.27
    课程作业 03 动手动脑 2017.10.20
    课程作业 03 2017.10.20
    HDU 3974 Assign the task
    POJ 2155 Matrix
    POJ 2481 Cows
    HDU 3038 How Many Answers Are Wrong
    CS Academy Array Removal
    POJ_1330 Nearest Common Ancestors LCA
    CF Round 427 D. Palindromic characteristics
  • 原文地址:https://www.cnblogs.com/dreamer-fish/p/3191381.html
Copyright © 2011-2022 走看看