SwitchLcmMode switches the DSC Local Configuration Manager between Push and Pull modes by updating meta-configuration.
Use this resource when you need to transition a node from Push mode to Pull mode (or vice versa) by downloading and applying a new MetaMOF. This is used in scenarios where nodes start in Push mode for initial configuration and then switch to Pull mode for ongoing management.
The SwitchLcmMode resource shall be the last step in the DSC configuration otherwise the following steps are not executed.
Source |
|
DSC Resource |
|
Documentation |
| Parameter | Attribute | DataType | Description | Allowed Values |
|---|---|---|---|---|
SourceMetaMofDir |
Mandatory |
String |
Folder with the MetaMOF files |
|
ConfigurationName |
String |
Name of the new configuration A file named |
Default: current computer name |
|
TargetMetaMofDir |
String |
Target folder for the new MetaMOF file and helper scripts |
Default: |
SwitchLcmMode:
SourceMetaMofDir: \\PullServer\Config$\MetaMOF
TargetMetaMofDir: C:\Temp\DSC
ConfigurationName: NewConfigName # leave this field empty to use the current computer name