Welcome to ciysys blog

View the binding for the website in IIS

Published on: 10th Feb 2020

Updated on: 16th Jan 2022


To view the binding, you need to call Get-WebBinding API.

Import-Module WebAdministration
Get-WebBinding -Name 'default web site'
  1. We import the WebAdministration PS module into memory so that we can call any of the API that interacts with IIS.

  2. Call Get-WebBinding to retrieve the binding for the "default web site" (you might have a website that has a different name).

In case you need to find out all website names, please run the following codes:

Get-ChildItem IIS:\Sites | select name

Jump to #POWERSHELL blog


Lau Hon Wan, software developer.