-
Notifications
You must be signed in to change notification settings - Fork 5
cMDTBuildTaskSequenceCustomize
Pavel Andreev edited this page Apr 5, 2024
·
6 revisions
cMDTBuildTaskSequenceCusomize is a DscResource that enables add custom steps for Task Sequences with lifecycle management for MDT.
Available parameters:
- [TSFile] - Task Sequence File Name
- [Name] - Step/Group Name
- [NewName] - New Step/Group Name
- [Type] - Step Type
- [GroupName] - Main Group for Step/Group
- [SubGroup] - Subgroup Group for Step/Group
- [Disable] - "true" / "false"
- [Description] - Description of the Step/Group
- [AddAfter] - Add this Step/Group after that Step
- [TSVarName] - TS variable name
- [TSVarValue] - TS variable value
- [OSName] - "Windows 10" / "Windows 2019"
- [OSFeatures] - OS Features
- [Command] - Command line for 'Run Command line' step
- [StartIn] - Start directory for 'Run Command line' step
- [PSCommand] - Command line for 'Run PowerShell Script' step
- [PSParameters] - Parameters to Pass to PS Script
- [SelectionProfile] - Selection profile for 'Apply Patches' step
- [PSDriveName] - The PSDrive name for the MDT deployment share
- [PSDrivePath] - The physical path to the MDT deployment share
The DscResource add/change the group or step into existing Task Sequence.
Desired State Configuration job example:
$TSFile = "$($PSDrivePath)\Control\$($TSID)\ts.xml"
cMDTBuildTaskSequenceCustomize AddFeatures {
TSFile = $TSFile
Name = "Install - Microsoft NET Framework 3.5.1"
Type = "Install Roles and Features"
GroupName = "State Restore"
SubGroup = "Custom Tasks (Pre-Windows Update)"
OSName = "Windows 10"
OSFeatures = "NetFx3,TelnetClient"
PSDriveName = $Node.PSDriveName
PSDrivePath = $Node.PSDrivePath
}
See more complex example in "/Examples" folder of this project.
- Home
- Quick Start
- How to Update MDT Server
- Prepare Windows Update Server
- Version History
- The DSC Resources:
- References