1

I am working on a powershell script that adds a binding in IIS using New-IISSiteBinding.

After the first run, I keep getting...

New-IISSiteBinding : Web site binding '*:443:mydomain.co.uk' already exists.
At line:7 char:1
+ New-IISSiteBinding -Name "MYSITE" -BindingInformation ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [New-IISSiteBinding], ArgumentException
    + FullyQualifiedErrorId : InvalidArgument,Microsoft.IIS.Powershell.Commands.NewIISSiteBindingCommand

When I call Get-IISSiteBinding, I can see the binding is there.

When I go to ISS, the binding isn't showing against the site.

When I go to applicationHost.config, the binding isn't in the file.

What is happening, please?

Beakie
  • 111

1 Answers1

1

Do you run an exchange server ? if you are not then try port 444 - with certificate binding .

443 is default SSL so ,I think that the reason you get that message .