Skip to content

cMDTBuildApplication

pvs043 edited this page Nov 2, 2016 · 1 revision

cMDTBuildApplication

cMDTBuildApplication is a DscResource that enables import applications in MDT. Applications downloaded before with cMDTBuildPreReqs DscResource.

Available parameters:

  • [Ensure] - Present/Absent
  • [Name] - Application name
  • [Path] - MDT path
  • [Enabled] - True/False
  • [CommandLine] - Install command line
  • [ApplicationSourcePath] - Folder under $SourcePath
  • [PSDriveName] - The PSDrive name for the MDT deployment share
  • [PSDrivePath] - The physical path to the MDT deployment share

The DscResource will import applications according to the following principle:

  • Verify status present or absent
  • If present:
    • Verify if the application already exist in MDT
    • If the application does not exist the application will be imported
  • If absent:
    • If application exist it will be removed

Desired State Configuration job example:

cMDTBuildApplication WMF5 {
    Ensure = "Present"
    Name = "Install - Windows Management Framework 5.0 - x64"
    Path = "\Applications\Core\Microsoft"
    CommandLine = "wusa.exe Win8.1AndW2K12R2-KB3134758-x64.msu /quiet /norestart"
    ApplicationSourcePath = "WMF50x64"
    Enabled = "True"
    PSDriveName = $PSDriveName
    PSDrivePath = $PSDrivePath
}