Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

WebAdministration provider / IIS binding quesion

$
0
0

Working on a ps 4.0 script to import an SSL cert and create the SSL binding in IIS.  I want to check if the https binding already exists before adding it.

Here is the code to add the SSL binding for IIS 7.5:

New-WebBinding -Name "Default Web Site" -IP "*" -Port 443 -Protocol https

How do I check if the https binding already exists so I don't unnecessarily add it again and encounter error?

thanks


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>