Modify Remote Desktop Services User Profile path for multiple users

Posted on 2012-08-26
Medium Priority
Last Modified: 2013-06-05
We recently performed a full Server 2008 R2 migration and instituted some new mandatory Remote Desktop Services User profiles for a few OU's of users. I'm simply looking for a way to change the AD remote desktop services (TS) user profile path for several OU's of users (or an security group)

I can't seem to find the syntax to make this change with dsquery and dsmod as I bulk change many AD attributes. I know I've struggled with TS profile paths in past (Server 2003, and resorted to a trial utility to get the job done).

I'm not very failure with Powershell, I'm sure it's time to learn. I found a good article here: http://blogs.technet.com/b/heyscriptingguy/archive/2008/10/23/how-can-i-edit-terminal-server-profiles-for-users-in-active-directory.aspx
but not sure how to make the script work for multiple users by OU.

Hoping for some Expert assistance.

Much Thanks!
Question by:bluesiivv
LVL 39

Accepted Solution

Krzysztof Pytko earned 2000 total points
ID: 38335454
The most simple way for that is downloading free Quest PowerShell module for AD from

and the use below syntax

Get-QADUser -SearchRoot "ou=OULocation,dc=domain,dc=local" -SizeLimit 0 | Set-QADUser -TsProfilePath "\\server1\profiles\mandatory2"

Open in new window

and just replace OU in this syntax by distinguished name of it from your domain


Expert Comment

ID: 39221997
The easiest way to modify the remote desktop services profile for all users, is through a GPO and link the GPO to the OU where your terminal servers reside.

The setting is 'Set path for Remote Desktop Services Roaming User Profile' and can be found under Computer Configuration/Policies/Administrative Templates/Windows Components/Remote Desktop Services/Remote Desktop Session Host/Profiles

That way there is no need to change the user objects.

Kind regards,
Paul van der Meer

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Microsoft Office 365 is a subscriptions based service which includes services like Exchange Online and Skype for business Online. These services integrate with Microsoft's online version of Active Directory called Azure Active Directory.
Active Directory can easily get cluttered with unused service, user and computer accounts. In this article, I will show you the way I like to implement ADCleanup..
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question