Integrating Activities with Remote Desktop Services (RDS)
Overview
This article describes how to integrate Netwrix Privilege Secure for Access Management activities with Microsoft Remote Desktop Services (RDS) to launch interactive application sessions with temporarily higher privileges.
Instructions
Licensing
Remote Desktop Services runs without a license for a period determined by Microsoft. For long-term use, you must install and set up RDS licensing based either on named users or RDS clients. This is not covered in this article.
Configure Remote Desktop Services
-
On the Remote Desktop Services / Terminal Services (RemoteApp) server, launch Server Manager, click the Manager tab, and select Add Roles and Features.
-
Follow the wizard, select Remote Desktop Services installation, and click Next.

-
Select either Standard Deployment (as in this guide) or Quick Start if you intend to install all RDS role services on the same server. Click Next.

-
Select Session-based desktop deployment, and click Next.

-
Follow the wizard without making any changes until you get to the RD Connection Broker tab. Specify the server intended for the RD Connection Broker server and click Next.

-
Specify the server intended for the RD Web Access server and click Next.

-
Specify the server intended for the RD Session Host server(s) and click Next.

-
Review RDS role server selection, check the Restart the destination server automatically if required box, and click Deploy.
The RD role services installation begins. About halfway through, the server reboots automatically. After the server reboots, log in with the same account used when the installation was first started and open Server Manager. The installation dialogue window resumes.

-
After completion of RDS role services installation, launch Server Manager, go to the RDS overview window, and click 3 Create session collections.

-
Follow the wizard until you get to the Collection Name tab. Enter a name, such as "NPS Applications", and click Next.

-
Specify the RD Session Host server (the server you specified earlier during installation of the RD Session Host role) and click Next.
-
Add the user groups who will access RemoteApps in the session collection. Click Next.

-
Optionally specify and enable user profile disks (not used in the test environment for this guide). Review the defined session collection parameters and click Create. After the session collection is created, close the Create Collection wizard.
-
In Server Manager, go to the Remote Desktop Services Overview and note the new session collection created under the RD Session Host icon.

-
Publish RemoteApps by going to the Collections tab of Server Manager and selecting Publish RemoteApp Programs from the Task menu.

-
If the required application is listed, select it. For applications such as ADUC (Active Directory Users and Computers), you need to specify the executable name and path. Click Add.

-
For ADUC, add MMC (<rds_server>\c$\Windows\System32\mmc.exe).

-
After adding all desired programs, click Next, click Publish, and then click Close.
-
Rename the RemoteApp and specify a parameter to launch ADUC. For additional security, you can assign groups of users to RemoteApps. For example, assign the ADUC RemoteApp to an Active Directory (AD) group called
RAUsers_ADUC. -
Right-click the RemoteApp and select Edit Properties.

-
Edit the RemoteApp name and set it to "ADUC", then click the Parameters tab in the left sidebar.

-
On the Parameters tab, select the Always use the following command-line parameters radio button. For the path use:
dsa.msc -
Click the User Assignment tab in the left sidebar. Select the user access control group for the RemoteApp. In this case, specify that users must be a member of the
RAUsers_ADUCgroup to run the ADUC RemoteApp.
-
Click OK. Configuration of ADUC as a RemoteApp that can be accessed via a Privilege Secure activity is now complete. Next, perform the necessary setup in a Privilege Secure activity.
-
Log in to Privilege Secure as an Administrator. Create an activity to execute the ADUC RemoteApp you created earlier. Ensure Interactive App Launch is selected and the full application path to the RemoteApp on the RDS host is specified, but do not use the full path for MMC extensions such as
dsa.msc.For example:
C:\Windows\System32\mmc.exe dsa.mscIMPORTANT: Double-check that the Application to Launch field exactly matches the application and parameter you published with the RemoteApp. For the application value, always use implicit drive/folder names, that is, use
C:\Windows\and NOT relative identifiers such as%SYSTEMROOT%.
-
For this example, add the Login Account to the
RAUsers_ADUCdomain group specified for the RemoteApp by adding an Add User to Domain Group action to the activity's pre-session.
-
For temporary privilege elevation, you may also want to add a step to add the Login Account to
Domain Admins. -
Create an access policy in Privilege Secure that contains the recently created activity, the users who should have access to use it, and the Remote Desktop Services server resource. You can now provision this activity to any user granted privilege to use it.
-
When you connect to the Remote Desktop Services server, you will only have access to the published RemoteApp (in this case, ADUC). The RDP session does not offer a full desktop environment, since this is an Interactive App Launch for a specified program.
