Modifies configuration settings for a RemoteApp program.
PowerShell · Risk: High · Documentation Verified
Last verified: 2026-10-26
Microsoft RemoteDesktop reference: Modifies configuration settings for a RemoteApp program. The syntax and selected example below are adapted from the pinned Windows Server 2025 reference. Module availability, target configuration and delegated permissions determine whether it can run in your environment. Documentation and parameter text: Microsoft, CC BY 4.0; formatting adapted by Cmdlet World. No execution testing is claimed.
Use an account with the target resource permissions documented for Set-RDRemoteApp. Modifying administrative cmdlets may require elevation or delegated administration. This catalog does not assert that ordinary users can execute the command.
Supported environments
Windows / RemoteDesktop · Windows Server 2025 documentation; feature/module prerequisites apply
Parameters
-Alias (required)
Specifies an alias for the RemoteApp program. This alias must be unique within the collection specified by the CollectionName parameter.
-CollectionName (required)
Specifies the name of a virtual desktop collection or session collection.
-CommandLineSetting
Specifies whether the RemoteApp program accepts command-line arguments from the client at connection time. The acceptable values for this parameter are: - Allow. Accepts command-line arguments. - DoNotAllow. Does not accept command-line arguments. - Require. Allows only command-line arguments specified in the RequiredCommandLine parameter.
-ConnectionBroker
Specifies the Remote Desktop Connection Broker (RD Connection Broker) server for a Remote Desktop deployment. If you do not specify a value, the cmdlet uses the fully qualified domain name (FQDN) of the local computer.
-DisplayName
Specifies a name to display to users for the RemoteApp program.
-FilePath
Specifies a path for the executable file for the application. Do not include any environment variables. For session collections, this path must be a valid local path on all Remote Desktop Session Host (RD Session Host) servers in the collection. For virtual desktop collections, this path must be a valid local path on all virtual desktops in the collection.
-FileVirtualPath
Specifies a path for the application executable file. This path resolves to the same location as the value of the FilePath parameter, but it can include environment variables.
-FolderName
Specifies the name of the folder that the RemoteApp program appears in on the Remote Desktop Web Access (RD Web Access) webpage and in the Start menu for subscribed RemoteApp and Desktop Connections.
-IconIndex
Specifies the index in the icon file for the RemoteApp program icon. The IconPath parameter specifies the icon file.
-IconPath
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.
-RequiredCommandLine
Specifies a string that contains command-line arguments that the client can use at connection time with the RemoteApp program. If you specify this parameter, the CommandLineSetting parameter must have a value of Require.
-ShowInWebAccess
Specifies whether to show the RemoteApp program in the RD Web Access server, and in RemoteApp and Desktop Connections that the user subscribes to.
-UserGroups
Specifies an array of domain groups and users that can view the RemoteApp in RD Web Access, and in RemoteApp and Desktop Connections. To allow all users to see a RemoteApp program, provide a value of $Null.
-VirtualDesktopName (required)
Specifies the name of a virtual desktop. The icon file specified in the IconPath parameter resides in this virtual desktop. The virtual desktop must be a member of the collection specified by the CollectionName parameter.
Prerequisites
Windows with the RemoteDesktop module and the Windows feature or management tools that provide it. Confirm target connectivity and version compatibility using the linked Microsoft reference.
Security considerations
This cmdlet changes system state. Review every target and parameter in the official reference, test outside production, and prepare an appropriate backup or rollback. Do not execute the example automatically.
Examples
Example 1: Modify settings for a RemoteApp program
This command modifies settings for a RemoteApp program in the collection named Virtual Desktop Collection. The command specifies IE as an alias, and specifies Websites as the folder where the RemoteApp program appears. The command specifies the virtual desktop name RDS-WKS-A27. This command uses a required command line argument. This RemoteApp opens the specified browser to go to the specified URL. Source: Microsoft, CC BY 4.0; transcript prompt/output removed. This example was not executed.