Get-WebVirtualDirectory

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

Syntax

Get-WebVirtualDirectory
   [-Site <String>]
   [-Application <String>]
   [[-Name] <String>]
   [<CommonParameters>]

Description

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 cmdlet returns the list of virtual directories on the Default Web Site on which the application named testApp is configured.

Optional Parameters

-Application

The name of a Web application with which virtual directories are associated.

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Name

The name of a virtual directory to return.

Type:String
Position:0
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Site

The name of the site for which a list of virtual directories is returned.

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False