DSCResources/DscPullServer/DscPullServer.schema.psm1
configuration DscPullServer { param ( [string] $CertificateThumbPrint = 'AllowUnencryptedTraffic', [uint16] $Port = 8080, [string] $EndpointName = 'PSDSCPullServer', [string] $PhysicalPath = "$env:SystemDrive\inetpub\PSDSCPullServer", [bool] $UseSecurityBestPractices = $false ) Import-DscResource -ModuleName PSDesiredStateConfiguration Import-DSCResource -ModuleName xPSDesiredStateConfiguration xDscWebService PSDSCPullServer { Ensure = 'Present' EndpointName = $EndpointName Port = $Port PhysicalPath = $PhysicalPath CertificateThumbPrint = $CertificateThumbPrint ModulePath = "$env:PROGRAMFILES\WindowsPowerShell\DscService\Modules" ConfigurationPath = "$env:PROGRAMFILES\WindowsPowerShell\DscService\Configuration" State = 'Started' UseSecurityBestPractices = $UseSecurityBestPractices } } |