Get-RDFileTypeAssociation
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 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 (https://go.microsoft.com/fwlink/p/?LinkID=113216).
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*"