Skip to content

Instantly share code, notes, and snippets.

@signalwarrant
Created March 9, 2021 19:09
Show Gist options
  • Select an option

  • Save signalwarrant/a54fb28bfbc8d3cd7cc7dae4ad9d37f4 to your computer and use it in GitHub Desktop.

Select an option

Save signalwarrant/a54fb28bfbc8d3cd7cc7dae4ad9d37f4 to your computer and use it in GitHub Desktop.
LCMPull.ps1
# 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