How to Rename a Binding With PowerShell

Windows PowerShell is a scripting language and command line similar to DOS that gives you the ability to automate tasks and manage applications as well as sites. Bindings are used on websites you create as a way to save data configured for interaction with the site such as the site's IP address, port number and protocol attributes used to communicate with the site. You can rename your binding / bindings with the PowerShell command "Set-ItemProperty."

Instructions

    • 1

      Click "Start," "All Programs," "Accessories."

    • 2

      Click "Windows PowerShell" and select from the 32-bit or 64-bit option.

    • 3

      Type the following command in the command prompt and press "Enter":

      "Set-ItemProperty IIS:\Sites\DemoSite -Name bindings -Value (@{protocol="http";bindingInformation="*:80:DemoSite1"},@{protocol="http";bindingInformation="*:80:DemoSite2"})."

      Replace "Name bindings" with the name of the bindings you want to replace and replace "bindingInformation" with the data and name from your replacement bindings. This command will rename the binding of your choice.

Related Searches:

References

Comments

Related Ads

Featured