How to remove SSL bindings using powershell
What about using Remove-Item
:
Example :
PS> dir IIS:\SslBindingsIP Address Port Store Sites---------- ---- ----- -----0.0.0.0 8172 MY0.0.0.0 9000 MyPS> Remove-Item -path "IIS:\SslBindings\0.0.0.0!9000"PS> dir IIS:\SslBindingsIP Address Port Store Sites---------- ---- ----- -----0.0.0.0 8172 MY
Of course there is a WebAdministration cmdlet : Remove-WebBinding
http://technet.microsoft.com/en-us/library/ee790591.aspx
Use netsh http delete sslcert ipport=0.0.0.0:443 to delete a SSL certificate binding:example:
$DelSsl = netsh http delete sslcert ipport=0.0.0.0:443$DelSsl $Ssl = netsh http add sslcert ipport=0.0.0.0:443 certhash=$certhash appid=$appid$Ssl