How to Remove Site Binding With PowerShell
PowerShell is a free utility that comes with the Microsoft Windows operating systems. It allows you to manage the system registry, modify files and perform administrator tasks. It utilizes a command line interface similar to DOS. Site bindings include information required to interact with a website, such as the site's IP address, the port number and the host header. The "Clear-ItemProperty" command allows you to remove site bindings from your site. With your Notepad text editor and Windows Explorer, you can run the PowerShell script to remove any site bindings.
Instructions
-
-
1
Click "Start" and type "Notepad" into the search field. Double-click the "Notepad" icon, when it appears, to open the text editor.
-
2
Paste the following code into your Notepad text editor:
Clear-ItemProperty IIS:\Sites\DemoSite -Name bindings
-
-
3
Replace "Name bindings" with the name of the bindings on your site.
-
4
Click "File," "Save As" and name your file. Click "Save."
-
5
Click "Start" and type "Windows Explorer." Navigate to the file you just saved and double-click it. This runs your PowerShell script to remove all bindings from your site.
-
1