Modifier

Partager via


Get-RDFileTypeAssociation

Displays the file extensions associated with a RemoteApp program.

Syntax

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.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-AppDisplayName

Specifies the name that users see for the RemoteApp program.

Type:String[]
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-CollectionName

Specifies the name of the collection.

Type:String
Position:0
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters: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.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-FileExtension

Specifies the file name extension whose associated RemoteApp program appears.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

Outputs

Microsoft.RemoteDesktopServices.Management.FileTypeAssociation