DSCResources/xIISCertSBinding/bulid.ps1
$Port =New-xDscResourceProperty -Name Port -Type Uint16 -Attribute Key -Description "绑定端口" $IP= New-xDscResourceProperty -Name IP -Type String -Attribute Required -Description "绑定IP" $CertThumbprint =New-xDscResourceProperty -Name CertThumbprint -Type String -Attribute Required -Description "证书指纹" $BindingUrl = New-xDscResourceProperty -Name BindingUrl -Type String -Attribute Required New-xDscResource -Name xIISCertSBinding -Property $Port,$IP,$CertThumbprint -Path c:\ Update-xDscResource -Path C:\DSCResources\xIISCertSBinding -Property $Port,$IP,$CertThumbprint,$BindingUrl |