Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@appliedi
Created April 12, 2016 13:51
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 appliedi/1f49c3924d7913cd83dcbb67add98b41 to your computer and use it in GitHub Desktop.
Save appliedi/1f49c3924d7913cd83dcbb67add98b41 to your computer and use it in GitHub Desktop.
HTTP Pull Server Configuration
[DSCLocalConfigurationManager()]
Configuration LCM_HTTPPULL
{
param
(
[Parameter(Mandatory=$true)]
[string[]]$ComputerName,
[Parameter(Mandatory=$true)]
[string]$guid
)
Node $ComputerName {
Settings{
AllowModuleOverwrite = $True
ConfigurationMode = 'ApplyOnly'
RefreshMode = 'Pull'
ConfigurationID = $guid
}
ConfigurationRepositoryWeb DSCHTTP {
# Name = 'DSCHTTP'
ServerURL = 'http://DASHBOARD:8080/PSDSCPullServer.svc'
AllowUnsecureConnection = $true
}
}
}
# Computer list
$ComputerName='asrtest-sql01'
# Create Guid for the computers
$guid=[guid]::NewGuid()
# Create the Computer.Meta.Mof in folder
LCM_HTTPPULL -ComputerName $ComputerName -Guid $guid -OutputPath c:\DSC\HTTP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment