Hi,
I’m trying this out on my home’s virtualised servers and have run into a problem with creating the pull servers. I’ve created a new VM with Windows Server Core 2012 on and done some of the usual settings up like joining domain, latest updates and getting PowerShell 5 on. I’ve not come to run the scripting part for creating the pull server but get the below error:
At line:32 char:7 + IsComplianceServer = $false + ~~~~~~~~~~~~~~~~~~ The member 'IsComplianceServer' is not valid. Valid members are 'AcceptSelfSignedCertificates', 'CertificateThumbPrint', 'ConfigurationPath', 'DependsOn', 'EndpointName', 'Ensure', 'ModulePath', 'PhysicalPath', 'Port', 'PsDscRunAsCredential', 'RegistrationKeyPath', 'State'.
This is the code it’s executing as per lots of how-to guides tell me it should be:
Configuration Assert_DSCWebService
{
param (
[ValidateNotNullOrEmpty()]
[String] $certificateThumbprint
)
Import-DSCResource -ModuleName xPSDesiredStateConfiguration
Node localhost
{
WindowsFeature DSCServiceFeature
{
Ensure = “Present”
Name = “DSC-Service”
}
xDSCWebService PSDSCPullServer
{
Ensure = "Present"
EndPointName = "PSDSCPullServer"
CertificateThumbprint = $certificateThumbprint
PhysicalPath = "$env:SystemDrive\inetpub\wwwroot\PSDSCPullServer"
ConfigurationPath = "$env:ProgramFiles\WindowsPowerShell\DscService\Configuration"
ModulePath = "$env:ProgramFiles\WindowsPowerShell\DscService\Modules"
Port = 80
IsComplianceServer = $false
State = "Started"
DependsOn = "[WindowsFeature]DSCServiceFeature"
}
xDSCWebService PSDSCComplianceServer
{
Ensure = "Present"
EndPointName = "PSDSCComplianceServer"
CertificateThumbprint = "AllowUnencryptedTraffic"
PhysicalPath = "$env:SystemDrive\inetpub\wwwroot\PSDSCComplianceServer"
Port = 81
IsComplianceServer = $true
State = "Started"
DependsOn = "[WindowsFeature]DSCServiceFeature"
}
}
}
Any help?