Set-RDFileTypeAssociation

업데이트 날짜: 2015년 6월

적용 대상: Windows 10, Windows Server Technical Preview

Set-RDFileTypeAssociation

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

구문

Parameter Set: Session
Set-RDFileTypeAssociation [-CollectionName] <String> -AppAlias <String> -FileExtension <String> -IsPublished <Boolean> [-ConnectionBroker <String> ] [-IconIndex <String> ] [-IconPath <String> ] [-InformationAction <System.Management.Automation.ActionPreference> {SilentlyContinue | Stop | Continue | Inquire | Ignore | Suspend} ] [-InformationVariable <System.String> ] [ <CommonParameters>]

Parameter Set: VirtualDesktop
Set-RDFileTypeAssociation [-CollectionName] <String> -AppAlias <String> -FileExtension <String> -IsPublished <Boolean> -VirtualDesktopName <String> [-ConnectionBroker <String> ] [-IconIndex <String> ] [-IconPath <String> ] [-InformationAction <System.Management.Automation.ActionPreference> {SilentlyContinue | Stop | Continue | Inquire | Ignore | Suspend} ] [-InformationVariable <System.String> ] [ <CommonParameters>]




자세한 설명

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

매개 변수

-AppAlias<String>

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


별칭

none

필수 여부

true

위치

named

기본값

none

파이프라인 입력 허용 여부

True (ByPropertyName)

와일드카드 문자 허용 여부

false

-CollectionName<String>

Specifies the name of the session or virtual desktop collection.


별칭

none

필수 여부

true

위치

1

기본값

none

파이프라인 입력 허용 여부

True (ByPropertyName)

와일드카드 문자 허용 여부

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.


별칭

none

필수 여부

false

위치

named

기본값

none

파이프라인 입력 허용 여부

false

와일드카드 문자 허용 여부

false

-FileExtension<String>

Specifies the file name extension of the file type whose association you change.


별칭

none

필수 여부

true

위치

named

기본값

none

파이프라인 입력 허용 여부

True (ByPropertyName)

와일드카드 문자 허용 여부

false

-IconIndex<String>

Specifies the index in the icon file for the RemoteApp program icon. The IconPath parameter specifies the icon file.


별칭

none

필수 여부

false

위치

named

기본값

none

파이프라인 입력 허용 여부

True (ByPropertyName)

와일드카드 문자 허용 여부

false

-IconPath<String>

Specifies the path to a file containing the icon to display for the RemoteApp program identified by the Alias parameter. This path must not contain any environment variables. For session collections, the path must be a valid local path on all RD Session Host servers in the collection. For virtual desktop collections, the path must be a valid local path on all virtual desktops in the collection.


별칭

none

필수 여부

false

위치

named

기본값

none

파이프라인 입력 허용 여부

True (ByPropertyName)

와일드카드 문자 허용 여부

false

-InformationAction<System.Management.Automation.ActionPreference>

Specifies how this cmdlet responds to an information event. The acceptable values for this parameter are:

-- SilentlyContinue
-- Stop
-- Continue
-- Inquire
-- Ignore
-- Suspend


별칭

infa

필수 여부

false

위치

named

기본값

none

파이프라인 입력 허용 여부

false

와일드카드 문자 허용 여부

false

-InformationVariable<System.String>

Specifies a variable in which to store an information event message.


별칭

iv

필수 여부

false

위치

named

기본값

none

파이프라인 입력 허용 여부

false

와일드카드 문자 허용 여부

false

-IsPublished<Boolean>

Indicates whether users can see the file type association.

Set this parameter to $True if users need to open the RemoteApp that corresponds to a file type by double-clicking a file of that type.

Set this parameter to $False if you do not want to associate files of a particular type with a RemoteApp program on end users’ machines. For example, if you have published Microsoft Word as a RemoteApp, but you want end users to open .docx files in local copies of Wordpad rather than in the RemoteApp Word, set IsPublished to $False in the file type association for .docx files.


별칭

none

필수 여부

true

위치

named

기본값

none

파이프라인 입력 허용 여부

True (ByPropertyName)

와일드카드 문자 허용 여부

false

-VirtualDesktopName<String>

Specifies the name of the virtual desktop where the icon file whose name is in the IconPath parameter appears. This virtual desktop must belong to the collection whose value is in the CollectionName parameter.


별칭

VMName

필수 여부

true

위치

named

기본값

none

파이프라인 입력 허용 여부

false

와일드카드 문자 허용 여부

false

<CommonParameters>

이 cmdlet은 -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, -OutVariable 등의 일반 매개 변수를 지원합니다. 자세한 내용은 TechNet의 about_CommonParameters(http://go.microsoft.com/fwlink/p/?LinkID=113216)

입력

입력 형식은 cmdlet으로 파이프할 수 있는 개체의 형식입니다.

출력

출력 형식은 cmdlet 실행 시 출력되는 개체의 형식입니다.

  • Null

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

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.


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

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

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.


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

관련 항목

커뮤니티 추가 항목

추가
표시: