Created
March 10, 2015 12:33
-
-
Save vhusker/d9c6b58174c242dafa22 to your computer and use it in GitHub Desktop.
Set App Server Local Configuration
This file contains 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
Configuration PushLCMConfig{ | |
param( | |
[parameter(Mandatory=$True)] | |
[ValidateNotNullorEmpty()] | |
[string]$ComputerName | |
) | |
Node $ComputerName{ | |
LocalConfigurationManager{ | |
ConfigurationMode = 'ApplyAndAutoCorrect' | |
ConfigurationID = "78653f12-9e40-41fd-9b92-a9c14e3670a7" | |
RefreshMode = 'Pull' | |
DownloadManagerName = 'WebDownloadManager' | |
DownloadManagerCustomData = @{ | |
#Make sure to change the ServerURL to match what you are using | |
ServerUrl = 'http://$PULLSERVER.DOMAIN.COM:8080/PSDSCPullServer.svc'; | |
AllowUnsecureConnection = 'true' } | |
RebootNodeIfNeeded = $True | |
} | |
} | |
} | |
PushLCMConfig -ComputerName $YourComputerName -OutputPath $YourPath | |
Set-DscLocalConfigurationManager -ComputerName $YourComputerName -Path $YourPath -Verbose | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment