Advertisement
alcaron

PS-ConfigDSCPullClient.ps1

Feb 7th, 2014
426
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Configuration Setup {
  2.     param ($NodeId, $PullServer)
  3.  
  4.     LocalConfigurationManager {
  5.         AllowModuleOverwrite = 'True'
  6.         ConfigurationID = $NodeId
  7.         ConfigurationModeFrequencyMins = 10
  8.         ConfigurationMode = 'ApplyAndAutoCorrect'
  9.         RebootNodeIfNeeded = 'False'
  10.         RefreshMode = 'PULL'
  11.         DownloadManagerName = 'WebDownloadManager'
  12.         DownloadManagerCustomData = (@{ServerUrl = "http://$PullServer/PSDSCPullServer.svc";AllowUnsecureConnection = 'True'})
  13.     }
  14. }
  15.  
  16. $guid = "c466bad4-f79b-408a-93d4-56bae2bc0445"
  17. Setup -NodeId $guid -PullServer "<dscserver>" -OutputPath <outputpath>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement