modules/deploy/dsc/ext/PsGallery/xPSDesiredStateConfiguration.3.7.0.0/Examples/Sample_xDscWebServiceRemoval.ps1
# DSC configuration for removal of Pull Server and Compliance Server configuration Sample_xDscWebService { param ( [string[]]$NodeName = 'localhost' ) Import-DSCResource -ModuleName xPSDesiredStateConfiguration Node $NodeName { WindowsFeature DSCServiceFeature { Ensure = "Present" Name = "DSC-Service" } xDscWebService PSDSCPullServer { Ensure = "Absent" EndpointName = "PSDSCPullServer" CertificateThumbPrint = "notNeededForRemoval" } xDscWebService PSDSCComplianceServer { Ensure = "Absent" EndpointName = "PSDSCComplianceServer" CertificateThumbPrint = "notNeededForRemoval" } } } |