Returns all the websites installed on the local computer, or a specific website.
Get-IisWebsite [[-SiteName] <String>] [<CommonParameters>]
Returns a Microsoft.Web.Administration.Site object.
Each object will have a CommitChanges
script method added which will allow you to commit/persist any changes to the website's configuration.
Name | Type | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|---|
SiteName | String | The name of the site to get. | false | false |
Microsoft.Web.Administration.Site.
Get-IisWebsite
Returns all installed websites.
Get-IisWebsite -SiteName 'WebsiteName'
Returns the details for the site named WebsiteName
.