Applies to: Exchange Server 2013
Topic Last Modified: 2012-08-01
Use the Get-PowerShellVirtualDirectory cmdlet to view an existing virtual directory in Internet Information Services (IIS).
For information about the parameter sets in the Syntax section below, see Syntax.
Syntax
Get-PowerShellVirtualDirectory -Server
<ServerIdParameter> <COMMON PARAMETERS>
|
Get-PowerShellVirtualDirectory [-Identity
<VirtualDirectoryIdParameter>] <COMMON
PARAMETERS>
|
COMMON PARAMETERS: [-ADPropertiesOnly
<SwitchParameter>] [-DomainController <Fqdn>]
[-ShowBackEndVirtualDirectories <SwitchParameter>]
[-ShowMailboxVirtualDirectories <SwitchParameter>]
|
Examples
EXAMPLE 1
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.
Copy Code | |
---|---|
Get-PowerShellVirtualDirectory | Format-Table Name, Internal* -Wrap |
EXAMPLE 2
This example retrieves a list of all the Windows PowerShell virtual directories that exist on the server Server01.
Copy Code | |
---|---|
Get-PowerShellVirtualDirectory -Server Server01 |
Detailed Description
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.
Parameters
Parameter | Required | Type | Description |
---|---|---|---|
Server |
Required |
Microsoft.Exchange.Configuration.Tasks.ServerIdParameter |
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. |
ADPropertiesOnly |
Optional |
System.Management.Automation.SwitchParameter |
The ADPropertiesOnly switch specifies whether to return only the properties about the virtual directory stored in Active Directory. The properties stored in the Internet Information Services (IIS) metabase aren't returned. |
DomainController |
Optional |
Microsoft.Exchange.Data.Fqdn |
The DomainController parameter specifies the fully qualified domain name (FQDN) of the domain controller that retrieves data from Active Directory. |
Identity |
Optional |
Microsoft.Exchange.Configuration.Tasks.VirtualDirectoryIdParameter |
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. |
ShowBackEndVirtualDirectories |
Optional |
System.Management.Automation.SwitchParameter |
This parameter is reserved for internal Microsoft use. |
ShowMailboxVirtualDirectories |
Optional |
System.Management.Automation.SwitchParameter |
The ShowMailboxVirtualDirectories switch instructs the command to return the Windows PowerShell virtual directories that are located on servers running the Mailbox server role. This switch should only be used with the direction of Microsoft Support. |
Input Types
To see the input types that this cmdlet accepts, see Cmdlet Input and Output Types. If the Input Type field for a cmdlet is blank, the cmdlet doesn’t accept input data.
Return Types
To see the return types, which are also known as output types, that this cmdlet accepts, see Cmdlet Input and Output Types. If the Output Type field is blank, the cmdlet doesn’t return data.