dsc/ext/PsGallery/xPSDesiredStateConfiguration.6.4.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" UseSecurityBestPractices = $false } } } |