Skip to content

cMDTBuildDirectory

pvs043 edited this page Nov 2, 2016 · 1 revision

cMDTBuildDirectory

cMDTBuildDirectory is a DscResource that enables management of folder structures with lifecycle management for MDT. These folders can be managed from a pull server according to Desired State Configuration principles.

Available parameters:

  • [Ensure] - Present/Absent
  • [Name] - Name of folder
  • [Path] - MDT path
  • [PSDriveName] - The PSDrive name for the MDT deployment share
  • [PSDrivePath] - The physical path to the MDT deployment share

The DscResource will manage MDT folders according to the following principle:

  • Verify status present or absent
  • If present:
    • Check if defined folder exists in MDT
    • If the folder does not exist the folder will be created
  • If absent:
    • The folder will be removed

Desired State Configuration job example:

cMDTBuildDirectory Windows10 {
    Ensure = "Present"
    Name = "Windows 10"
    Path = "DS001:\Operating Systems"
    PSDriveName = $PSDriveName
    PSDrivePath = $PSDrivePath
}