Modify Remote Desktop Services User Profile path for multiple users

Posted on 2012-08-26
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:
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

    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

    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

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Why spend so long doing email signature updates?

    Do you spend loads of your time carrying out email signature updates? Not very interesting are they? Don’t let signature updates get you down. Let Exclaimer Cloud - Signatures for Office 365 make managing email signatures a breeze.

    Suggested Solutions

    How to sign a powershell script so you can prevent tampering, and only allow users to run authorised Powershell scripts
    Find out how to use Active Directory data for email signature management in Microsoft Exchange and Office 365.
    This tutorial will walk an individual through locating and launching the BEUtility application and how to execute it on the appropriate database. Log onto the server running the Backup Exec database. In a larger environment, this would generally be …
    This tutorial will give a short introduction and overview of Backup Exec 2012 and how to navigate and perform basic functions. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as conne…

    737 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

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now