I want to list the names of all web applications in IIS using the command Get-WebApplication.
Get-WebApplication -site "Default Web Site"
It works and returns something like this
Name Application pool Protocols Physical Path
---- ---------------- --------- -------------
test.com test.comAppPo http E:\Sites\test.com
I just want to see the name of the application, so I used -
Get-WebApplication -site "Default Web Site" | Select Name
Results are not returned. What am I doing wrong?
source
share