Add / Remove the bindings for the website in IIS through Powershell commands

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Add / Remove the bindings for the website in IIS through Powershell commands

    Please refer to Powershell commands:

    New-WebBinding [[-Name] <String>] [-Protocol <String>] [-Port <UInt32>] [-IPAddress <String>] [-HostHeader <String>]
    For example:
    Add the binding with the following commands:

    New-WebBinding -Name "test.com" -IP "XX.XX.XX.XX" -Port 443 -Protocol https
    (The binding of port 443 will be added for the domain test.com)

    Remove the binding with the following:

    Get-WebBinding -Port 443 -Name "test.com" | Remove-WebBinding
    (The binding of port 443 will be removed for the domain "test.com")

    #2
    Re: Add / Remove the bindings for the website in IIS through Powershell commands

    Hello Jen,

    Nice work. Thank you for sharing this !!!!!



    Regards,
    Popeye

    The Sailor Man

    Comment

    Working...
    X