PowerShell Logo Small

Set-RDFileTypeAssociation



This is the built-in help made by Microsoft for the command 'Set-RDFileTypeAssociation', in PowerShell version 3 - as retrieved from Windows version 'Microsoft Windows Server 2012 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Changes the file type association of a RemoteApp program in a Remote Desktop deployment.

SYNTAX


Set-RDFileTypeAssociation [-CollectionName] <String> [-ConnectionBroker <String>] [-IconIndex <String>] [-IconPath <String>] -AppAlias
<String> -FileExtension <String> -IsPublished <Boolean> [<CommonParameters>]
Set-RDFileTypeAssociation [-CollectionName] <String> [-ConnectionBroker <String>] [-IconIndex <String>] [-IconPath <String>] -AppAlias
<String> -FileExtension <String> -IsPublished <Boolean> -VirtualDesktopName <String> [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Set-RDFileTypeAssocation cmdlet modifies the file type association of a WindowsServer®2008R2 RemoteApp program in a Remote Desktop
deployment.



<

RELATED LINKS

Get-RDFileTypeAssociation

REMARKS

<

Examples


Example 1: Set a file type association for a virtual desktop collection

PS C:\> Set-RDFileTypeAssociation -CollectionName "Virtual Desktop Collection" -AppAlias "iexplore" -FileExtension ".html" -IsPublished $True
-VirtualDesktopName "RDS-WKS-A27"



This command sets the following options for file type association:

-- Collection named Virtual Desktop Collection.

-- Remote Desktop application alias of iexplore.

-- File name extension of .html to associate with the application.

-- Virtual desktop named RDS-WKS-A27.

-- Users can see the file name extension.




Example 2: Set a file type association for a session collection

PS C:\> Set-RDFileTypeAssociation -CollectionName "Session Collection" -AppAlias "Notepad" -FileExtension ".txt" -IsPublished $True -IconPath
"%windir%\System32\Notepad.exe" -IconIndex 0



This command sets these options for file type association:

-- Collection named Session Collection.

-- Remote Desktop application alias of Notepad.

-- File name extension of .txt to associate with the application.

-- The icon for the Remote Desktop program Notepad.exe appears in the \System32 subfolder of the Windows folder. The icon that appears for
Notepad is at the first position of the icon file.