Table of contents
TLS
TOC
Collapse the table of content
Expand the table of content

Get-WebVirtualDirectory

Last Updated: 3/8/2017

SYNOPSIS

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

SYNTAX

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.

Type: String
Parameter Sets: (All)
Aliases: 

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

-Name

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

Type: String
Parameter Sets: (All)
Aliases: 

Required: False
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-Site

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

Type: String
Parameter Sets: (All)
Aliases: 

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

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES

New-WebVirtualDirectory

Remove-WebVirtualDirectory

© 2017 Microsoft