I have a question about some of the PowerShell Commands in the WebAdministration module.
When I run the command get-website I get a list of all my websites, and the first column is headed “Name”, so to get the website name and physical path I run this command:
Get-Website | select-object -Property Name,PhysicalPath
When I run the command Get-WebApplication I get a list of all my applications, and again the first column is headed Name and contains the application name. When I run this command:
Get-WebApplication | select-object -Property Name,PhysicalPath
The Name column is empty
It appears that a Name property does not exist for Get-WebApplication, as confirmed when I run:
Get-WebApplication | get-member
So how can I get the Name property of an application? It must be possible, because it is returned by running the Get-WebApplication command on its own.