This is the built-in help made by Microsoft for the command 'Set-RDFileTypeAssociation', in PowerShell version 5 - as retrieved from
Windows version 'Microsoft Windows Server 2012 R2 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.
Changes the file type association of a RemoteApp program in a Remote Desktop deployment.
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>]
The Set-RDFileTypeAssocation cmdlet modifies the file type association of a Windows Server® 2008 R2 RemoteApp program in a Remote Desktop deployment.
<
Online Version: http://go.microsoft.com/fwlink/?LinkId=294259
Get-RDFileTypeAssociation
<
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.