Skip to content

Instantly share code, notes, and snippets.

@jeffpatton1971
Last active January 1, 2016 18:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeffpatton1971/8187557 to your computer and use it in GitHub Desktop.
Save jeffpatton1971/8187557 to your computer and use it in GitHub Desktop.
A simple DSC Client Setup Configuration
Configuration SetupDSCClient
{
param
(
[string]$NodeId,
[string]$PullServer
)
LocalConfigurationManager
{
AllowModuleOverwrite = 'True'
ConfigurationID = $NodeId
ConfigurationModeFrequencyMins = 30
RefreshFrequencyMins = 15
ConfigurationMode = 'ApplyAndAutoCorrect'
RebootNodeIfNeeded = 'True'
RefreshMode = 'PULL'
DownloadManagerName = 'WebDownloadManager'
DownloadManagerCustomData = (@{ServerUrl = "http://$($PullServer)/psdscpullserver.svc";AllowUnsecureConnection = 'True'})
}
}
@jeffpatton1971
Copy link
Author

This assumes that you have already setup the web service and virtual directory stuffs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment