Skip to content

cMDTBuildSelectionProfile

pvs043 edited this page Nov 2, 2016 · 1 revision

cMDTBuildSelectionProfile

cMDTBuildTaskSequence is a DscResource that enables management of Selection Profiles with lifecycle management for MDT.

Available parameters:

  • [Ensure] - Present/Absent
  • [Name] - Name of Selection Profile
  • [Comments] - Selection Profile comments
  • [IncludePath] - Path to include imported OS Packages
  • [PSDriveName] - The PSDrive name for the MDT deployment share
  • [PSDrivePath] - The physical path to the MDT deployment share

The DscResource will create Selection Profile according to the following principle:

  • Verify status present or absent
  • If present:
    • Check if Selection Profile exist in the MDT path
    • If it does not exist the Selection Profile will be created
  • If absent:
    • The Selection Profile will be removed

Note: The Operating System must exist in the OSName path for the Task Sequence to be created correctly.

Desired State Configuration job example:

cMDTBuildSelectionProfile Win10x64 {
    Ensure      = "Present"
    Name        = "Windows 10 x64"
	Comments    = "Packages for Windows 10 x64"
	IncludePath = "Packages\Windows 10 x64"
    PSDriveName = $PSDriveName
    PSDrivePath = $PSDrivePath
}