« Previous Next »

Thread: Bug in Remove-WebBinding?

Last post 10-21-2008 4:35 AM by sergeia. 3 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (4 items)

Sort Posts:

  • 10-06-2008, 5:27 AM

    Bug in Remove-WebBinding?

    Every time when I try to invoke Remove-WebBinding for the site with spaces in its name, I'm getting an error about unknown parameter.

    PS IIS:\Sites> Remove-WebBinding  -Site 'Default Web Site' -IP * -Port 443
    Remove-WebBinding : A parameter cannot be found that matches parameter name 'Web'.
    At line:1 char:18
    + Remove-WebBinding  <<<<  -Site 'Default Web Site' -IP * -Port 443

  • 10-08-2008, 5:19 AM In reply to

    Re: Bug in Remove-WebBinding?

    Also, why should I write

    Set-WebBinding -Site "$($defaultWebSite.Name)" -IP '*' -Port 443 -Name 'https' -Value '*:443:'

    Instead of

    Set-WebBinding -Site "$($defaultWebSite.Name)" -IP '*' -Port 443

    (because all of the parameters are required)?

  • 10-21-2008, 4:21 AM In reply to

    • sergeia
    • Top 100 Contributor
    • Joined on 04-14-2008, 8:47 PM
    • Posts 68

    Re: Bug in Remove-WebBinding?

    There was a bug in remove-webbinding, indeed. It is fixed now. GoLive will not have this problem.

    Thanks,

    Sergei

  • 10-21-2008, 4:35 AM In reply to

    • sergeia
    • Top 100 Contributor
    • Joined on 04-14-2008, 8:47 PM
    • Posts 68

    Re: Bug in Remove-WebBinding?

    This command intended to change existing binding. Therefore we need "ip" and "port" to find binding on site, and "name" points to which part of binding you want to change. "Value" parameter will have data for this part. Name could be "IPAddress","Port","BindingInformation" or "HostHeader", other names are ignored. Your example will not change anything.

    I agree that this command is kind of confusing, we will spend more time on it and may be will find better design.

     

    Thanks,

    Sergei

Page 1 of 1 (4 items)
Microsoft Communities