Scratch/Get-TargetNodeLCMConfiguration.ps1

[DSCLocalConfigurationManager()]      
configuration LCMPull {
    param (
        [Parameter(Mandatory=$true)]
        [string[]]$ComputerName,

        [Parameter(Mandatory=$true)]
        [string]$guid,

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

        ConfigurationRepositoryWeb DSCHTTPS {
            ServerURL     = 'https://DSCPullServer:8086/PSDSCPullServer.svc'  
            CertificateID = $thumbprint
            AllowUnsecureConnection = $false
        }   

        ReportServerWeb DSCHTTPS {
            ServerURL = 'https://DSCPullServer:8086/PSDSCPullServer.svc'
            CertificateID = $thumbprint
            AllowUnsecureConnection = $false
        }
    }
}

$guid = New-Guid | Select-Object -ExpandProperty Guid
$thumbprint = Invoke-Command -ComputerName DSCPullServer {
    Get-ChildItem Cert:\LocalMachine\My | Where-Object Subject -Like 'CN=DSCPullServer*' |
        Select-Object -ExpandProperty Thumbprint
}

LCMPull -ComputerName $env:COMPUTERNAME -Guid $guid `
-Thumbprint $thumbprint -OutputPath .\MOF