Get-WebVirtualDirectory
Gets a list of the virtual directories on the specified site.
Syntax
Default (Default)
Get-WebVirtualDirectory
[-Site <String>]
[-Application <String>]
[[-Name] <String>]
[<CommonParameters>]
Description
The Get-WebVirtualDirectory cmdlet gets a list of the virtual directories on the specified site.
Examples
Example 1: Getting a virtual directory
IIS:\> Get-WebVirtualDirectory -Site "Default Web Site" -Application "TestApp"
This command returns the list of virtual directories on the default website on which the application named TestApp is configured.
Parameters
-Application
Specifies the name of a web application associated with virtual directories to return.
Parameter properties
| Type: | String |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | True |
| Value from remaining arguments: | False |
-Name
Specifies the name of a virtual directory that this cmdlet returns.
Parameter properties
| Type: | String |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | 0 |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | True |
| Value from remaining arguments: | False |
-Site
Specifies the name of the site for which this cmdlet returns a list of virtual directories.
Parameter properties
| Type: | String |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | True |
| Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.