Skip to content

cMDTBuildPersistentDrive

pvs043 edited this page Nov 2, 2016 · 1 revision

cMDTBuildPersistentDrive

cMDTBuildPersistentDrive is a DscResource that enables management of MDT persistent drives 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 drive
  • [Path] - MDT path
  • [Description] - A description of the drive
  • [NetworkPath] - Network share name of the MDT persistent drive

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

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

Desired State Configuration job example:

cMDTBuildPersistentDrive DeploymentPSDrive {
    Ensure = "Present"
    Name = $PSDriveName
    Path = $PSDrivePath
    Description = "MDT Build Share"
    NetworkPath = "\\$ComputerName\DeploymentShare$"
}