This is a common yet one of the most important PowerShell interview questions and answers for experienced professionals, don't miss this one. To work with Internet Information Services (IIS) in PowerShell, you can use the WebAdministration module.  Here are some common tasks you can perform with IIS using PowerShell:  List all websites:  Get-ChildItem IIS:\\Sites  Get the properties of a specific website:  Get-Item IIS:\\Sites\\Default Web Site | Select-Object *  Create a new website:  New-Item IIS:\\Sites\\MySite -PhysicalPath C:\\path\ o\\website -BindingInformation "*:8080:"  Start or stop a website:  Stop-WebSite -Name "MySite"
Start-WebSite -Name "MySite"  Remove a website:  Remove-WebSite -Name "MySite"  You can find more information about the WebAdministration module and its cmdlets in the PowerShell documentation or by using the Get-Help cmdlet. For example:  Get-Help New-Item -IIS