DSCResources/xIISWebBinding/test.ps1
Configuration s { Import-DscResource -module admin* Node xx { xIISWebBinding A { SiteName = "A" Information = "*:80:www.A.com","10.0.0.0:80:www.AA.com" Protocol = "Http" Ensure = "present" } } } #Set-TargetResource -SiteName AA -Protocol http -Information "172.16.1.10:8011:s","172.16.1.50:8011:a" -Ensure absent #test-TargetResource -SiteName AA -Protocol http -Information "172.16.1.50:8011:s","172.16.1.50:8011:a" -Ensure Absent #get-TargetResource -SiteName AA -Protocol http -Information "172.16.1.50:8011:s","172.16.1.50:8011:a" -Ensure Absent |