DSC_SampleScripts/Sample_ChangeLCMMetaConfig.ps1
Configuration LCMForRef { param ( [string]$ComputerName ) Node $ComputerName { LocalConfigurationManager { ConfigurationMode = "ApplyAndAutoCorrect" } } } LCMForRef -ComputerName 10.94.174.165 $secpwd=ConvertTo-SecureString "dell_123" -AsPlainText -force $mycred=New-Object System.Management.Automation.PSCredential("administrator",$secpwd) Set-DscLocalConfigurationManager -Path .\LCMForRef -Credential $mycred -Force #### # #For user's info: commands to immediately apply config without waiting for freq # Invoke-CimMethod -Namespace root/Microsoft/Windows/DesiredStateConfiguration -class MSFT_DSCLocalConfigurationManager -MethodName PerformRequiredConfigurationChecks -Arguments @{flags=[uint32]1} # OR # Invoke-CimMethod -ComputerName "10.94.23.45" -Namespace root/Microsoft/Windows/DesiredStateConfiguration -class MSFT_DSCLocalConfigurationManager -MethodName PerformRequiredConfigurationChecks -Arguments @{flags=[uint32]1} #### # SIG # Begin signature block # MIIbEwYJKoZIhvcNAQcCoIIbBDCCGwACAQExDzANBglghkgBZQMEAgEFADB5Bgor # BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG # KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCAUKLMF6UMx+jtK # WHjLvRvmrJeG7utsYJ87NQ3fwvk/B6CCCiMwggTCMIIDqqADAgECAhAiNl3Koo7M # bamHXZYvcHGpMA0GCSqGSIb3DQEBCwUAMH8xCzAJBgNVBAYTAlVTMR0wGwYDVQQK # ExRTeW1hbnRlYyBDb3Jwb3JhdGlvbjEfMB0GA1UECxMWU3ltYW50ZWMgVHJ1c3Qg # TmV0d29yazEwMC4GA1UEAxMnU3ltYW50ZWMgQ2xhc3MgMyBTSEEyNTYgQ29kZSBT # aWduaW5nIENBMB4XDTE4MDkyNzAwMDAwMFoXDTIxMDkyNjIzNTk1OVowWjELMAkG # A1UEBhMCVVMxDjAMBgNVBAgMBVRleGFzMRMwEQYDVQQHD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