Created
August 9, 2019 20:08
-
-
Save signalwarrant/4e0e04e481b56f6696163c170fbabd72 to your computer and use it in GitHub Desktop.
Advanced Auditing LCM Config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Run on the target node | |
| [DSCLocalConfigurationManager()] | |
| Configuration LCMConfig { | |
| Node SVR { | |
| Settings { | |
| ConfigurationMode = 'ApplyAndAutoCorrect' | |
| RefreshMode = 'Pull' | |
| } | |
| ConfigurationRepositoryWeb PullServer { | |
| ServerURL = 'https://10.0.10.1:8080/PsDscPullserver.svc' | |
| AllowUnsecureConnection = $false | |
| RegistrationKey = 'ab5f4916-a937-4f99-ae72-8b9db3dd8a60' | |
| ConfigurationNames = @('SVR') | |
| } | |
| ResourceRepositoryWeb PullServerModules { | |
| ServerURL = 'https://10.0.10.1:8080/PsDscPullserver.svc' | |
| AllowUnsecureConnection = $false | |
| RegistrationKey = 'ab5f4916-a937-4f99-ae72-8b9db3dd8a60' | |
| } | |
| } | |
| } | |
| LCMConfig | |
| Set-DscLocalConfigurationManager -ComputerName $env:COMPUTERNAME -Path '.\LCMConfig' -Verbose | |
| Get-DSCLocalConfigurationManager | |
| # This will show you the location of the CSV file that configuration is using | |
| Get-DscConfiguration |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment