$session = New-CimSession -ComputerName 'hostname'
Get-DSCLocalConfigurationManager -CimSession $session
# or
Get-DSCLocalConfigurationManager -Computername 'hostname'
# [DSCLocalConfigurationManager()] # starting with PowerShell 5.0
Configuration MyConfiguration {
Node @($nodes) {
LocalConfigurationManager {
ConfigurationMode = 'ApplyAndAutoCorrect'
ConfigarutionModeFrequencyMins = 120
RefreshMode = 'PUSH'
RebootNodeIfNeeded = $true
}
}
}
Set-DSCLocalConfigurationManager -Path ./MyLcmConfig.mof -Computername 'hostname'