Created
March 9, 2021 19:09
-
-
Save signalwarrant/a54fb28bfbc8d3cd7cc7dae4ad9d37f4 to your computer and use it in GitHub Desktop.
LCMPull.ps1
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 | |
| Configuration LCMPullConfig | |
| { | |
| LocalConfigurationManager | |
| { | |
| ConfigurationID = "EXCH"; | |
| RefreshMode = "PULL"; | |
| DownloadManagerName = "WebDownloadManager"; | |
| RebootNodeIfNeeded = $true; | |
| RefreshFrequencyMins = 30; | |
| ConfigurationModeFrequencyMins = 30; | |
| ConfigurationMode = "ApplyAndAutoCorrect"; | |
| DownloadManagerCustomData = @{ | |
| ServerUrl = "http://SCCM:8080/PSDSCPullServer/PSDSCPullServer.svc"; | |
| AllowUnsecureConnection = “TRUE”} | |
| } | |
| } | |
| # Create the .mof meta file for the target node | |
| LCMPullConfig | |
| # We're turning on Pull Mode on the Target | |
| Set-DSCLocalConfigurationManager -Computer localhost -Path ./LCMPullConfig -Verbose |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment