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