Export (0) Print
Expand All
Expand Minimize

Get-WebVirtualDirectory

Windows Server 2012 R2 and Windows 8.1

Get-WebVirtualDirectory

Gets a list of the virtual directories on the specified site.

Syntax

Parameter Set: Default
Get-WebVirtualDirectory [[-Name] <String> ] [-Application <String> ] [-Site <String> ] [ <CommonParameters>]




Detailed Description

The Get-WebVirtualDirectory cmdlet gets a list of the virtual directories on the specified site.

Parameters

-Application<String>

Specifies the name of a web application associated with virtual directories to return.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

false

-Name<String>

Specifies the name of a virtual directory that this cmdlet returns.


Aliases

none

Required?

false

Position?

1

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

false

-Site<String>

Specifies the name of the site for which this cmdlet returns a list of virtual directories.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (http://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

Example -------------- EXAMPLE Example 1: Getting a virtual directory --------------

This command returns the list of virtual directories on the default website on which the application named TestApp is configured.


IIS:\>Get-WebVirtualDirectory -Site 'Default Web Site' -Application "TestApp"

Related topics

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2015 Microsoft