Scripts/DSC2/Mod3/LCM_HTTPPull.ps1

[DSCLocalConfigurationManager()]
Configuration LCM_HTTPPULL 
{
    param
        (
            [Parameter(Mandatory=$true)]
            [string[]]$ComputerName,

            [Parameter(Mandatory=$true)]
            [string]$guid
        )          
    Node $ComputerName {
    
        Settings{
        
            AllowModuleOverwrite = $True
            ConfigurationMode = 'ApplyAndAutoCorrect'
            RefreshMode = 'Pull'
            ConfigurationID = $guid
            }

            ConfigurationRepositoryWeb DSCHTTP {
                Name = 'DSCHTTP'
                ServerURL = 'http://dc.company.pri:8080/PSDSCPullServer.svc'
                AllowUnsecureConnection = $true
            }
        
    }
}

# Computer list
$ComputerName='s2'

# 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