Export (0) Print
Expand All
Expand Minimize

Get-RDFileTypeAssociation

Windows Server 2012 R2 and Windows 8.1

Updated: October 17, 2013

Applies To: Windows 8.1, Windows PowerShell 4.0, Windows Server 2012 R2

Get-RDFileTypeAssociation

Displays the file extensions associated with a RemoteApp program.

Syntax

Parameter Set: Default
Get-RDFileTypeAssociation [[-CollectionName] <String> ] [-AppAlias <String> ] [-AppDisplayName <String[]> ] [-ConnectionBroker <String> ] [-FileExtension <String> ] [ <CommonParameters>]




Detailed Description

The Get-RDFileTypeAssocation cmdlet displays the file extensions that are associated with a Windows Server® 2008 R2 RemoteApp program in the Remote Desktop deployment.

Parameters

-AppAlias<String>

Specifies the alias for the RemoteApp program. The default alias is the program's filename without the extension.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-AppDisplayName<String[]>

Specifies the name that users see for the RemoteApp program.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-CollectionName<String>

Specifies the name of the collection.


Aliases

none

Required?

false

Position?

1

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-ConnectionBroker<String>

Specifies the Remote Desktop Connection Broker (RD  Connection Broker) server for this Remote Desktop deployment. Remote users connect to this server to obtain views of available RemoteApp programs, session-based desktops, and virtual desktops. If this parameter does not appear, the default value is the fully qualified domain name (FQDN) of the local host.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-FileExtension<String>

Specifies the file name extension whose associated RemoteApp program appears.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

<CommonParameters>

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

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

  • Microsoft.RemoteDesktopServices.Management.FileTypeAssociation

Examples

Example 1: Get a file type association by using an alias and a file name extension

This command gets a file type association by using the file name extension .html and the RemoteApp program whose alias is iexplore.


PS C:\> Get-RDFileTypeAssociation -AppAlias "iexplore" -FileExtension ".html"

Example 2: Get a file type association by using a collection name and an application display name

This command gets the file type association by using the collection named Session Collection and the names of all RemoteApp programs whose names begin with the word Note.


PS C:\> Get-RDFileTypeAssociation -CollectionName "Session Collection" -AppDisplayName "Note*"

Related topics

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft