Applies to: Exchange Server 2010

Topic Last Modified: 2011-03-19

Use the Get-PowerShellVirtualDirectory cmdlet to view an existing virtual directory in Internet Information Services (IIS).

Get-PowerShellVirtualDirectory [-Identity <VirtualDirectoryIdParameter>] [-DomainController <Fqdn>]

Get-PowerShellVirtualDirectory -Server <ServerIdParameter> [-DomainController <Fqdn>]

Parameter Required Type Description




The Server parameter specifies which server to query when returning a list of Windows PowerShell virtual directories. You can't use the Server parameter with the Identity parameter.




The DomainController parameter specifies the fully qualified domain name (FQDN) of the domain controller that retrieves data from Active Directory.




The Identity parameter specifies the name of the Windows PowerShell virtual directory to retrieve. If the virtual directory contains spaces, enclose the name in quotation marks ("). You can't use the Identity parameter with the Server parameter.

You need to be assigned permissions before you can run this cmdlet. Although all parameters for this cmdlet are listed in this topic, you may not have access to some parameters if they're not included in the permissions assigned to you. To see what permissions you need, see the "PowerShell virtual directories" entry in the Exchange and Shell Infrastructure Permissions topic.

Error Description


This example retrieves a list of all the Windows PowerShell virtual directories and uses the Format-Table cmdlet to display only the Name property and any properties that begin with Internal. For more information about the Format-Table cmdlet, see Working with Command Output.

Get-PowerShellVirtualDirectory | Format-Table Name, Internal* -Wrap

This example retrieves a list of all the Windows PowerShell virtual directories that exist on the server Server01.

Get-PowerShellVirtualDirectory -Server Server01