Edit

Share via


Get-RDFileTypeAssociation

Displays the file extensions associated with a RemoteApp program.

Syntax

Default (Default)

Get-RDFileTypeAssociation
    [[-CollectionName] <String>]
    [-AppAlias <String>]
    [-AppDisplayName <String[]>]
    [-FileExtension <String>]
    [-ConnectionBroker <String>]
    [<CommonParameters>]

Description

The Get-RDFileTypeAssociation cmdlet displays the file extensions that are associated with a firstref_server_7 RemoteApp program in the Remote Desktop deployment.

Examples

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

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

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

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

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

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.

Parameters

-AppAlias

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

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

-AppDisplayName

Specifies the name that users see for the RemoteApp program.

Parameter properties

Type:

String[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

-CollectionName

Specifies the name of the collection.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:0
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

-ConnectionBroker

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.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-FileExtension

Specifies the file name extension whose associated RemoteApp program appears.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

CommonParameters

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

Outputs

Microsoft.RemoteDesktopServices.Management.FileTypeAssociation