powershellscripts.com

Tutorials  PowerShell Cmdlet Help for Get-WebVirtualDirectory



NAME
Get-WebVirtualDirectory

SYNOPSIS
Gets an IIS virtual directory.

SYNTAX
Get-WebVirtualDirectory [-Site ] [-Application ] [[-Name] ] [-WarningAction ce>] [-WarningVariable ] []


DESCRIPTION
Returns an IIS virtual directory.


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

Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false

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

Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false

-Name
The name of a virtual directory to return.

Required? false
Position? 1
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false

-WarningAction


Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-WarningVariable


Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false


This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".

INPUTS



OUTPUTS



NOTES




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

C:\PS>Get-WebVirtualDirectory -site 'Default Web Site' -Application testApp


This cmdlet returns the list of virtual directories on the specified site.






RELATED LINKS