Reset DSC

Reset DSC Local Configuration Manager

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
[DscLocalConfigurationManager()]
Configuration ResetLCM {
    Node localhost {
        Settings {
            RebootNodeIfNeeded = $True
            ConfigurationMode = 'ApplyAndMonitor'
            RefreshMode = 'Push'
            ActionAfterReboot = 'ContinueConfiguration'
        }
    }
}

ResetLCM -out c:\$env:temp\resetLCM
Set-DscLocalConfigurationManager -Path C:\$env:temp\resetLCM -Verbose
What's on this Page