Skip to content

cMDTBuildBootstrapIni

pvs043 edited this page Nov 2, 2016 · 1 revision

cMDTBuildBootstrapIni

cMDTBootstrapIni is a DscResource that enables configuration and lifecycle management of the BootStrap.ini in MDT.

Available parameters with example:

  • [Ensure] - Present/Absent
  • [Path] - MDT path
  • [Content] - INI file content

The DscResource will manage the content of this file according to the following principle:

  • Verify status present or absent
  • If present:
    • Verify content of the local BootStrap.ini file with the configuration in the contract
    • Apply changes if necessary
  • If absent:
    • If absent BootStrap.ini will ve reverted to default state

Desired State Configuration job example:

cMDTBuildBootstrapIni ini {
    Ensure = "Present"
    Path = "$($PSDrivePath)\Control\Bootstrap.ini"
    Content = @"
[Settings]
Priority=Default

[Default]
DeployRoot=\\$($ComputerName)\DeploymentShare$
SkipBDDWelcome=YES

;MDT Connect Account
UserID=$($UserName)
UserPassword=$($Password)
UserDomain=$($env:COMPUTERNAME)
"@
}