Automatically Set Profile Path for Remote Desktop Services


In this tutorial, you will learn how to configure Adaxes to automatically set the Remote Desktop Services profile path for newly created users.

To automatically perform actions when a certain event takes place, you need to use Business Rules. Adaxes provides built-in Business Rule After User Creation that is triggered after a new user is created. You can use the Business Rule to automatically set the Remote Desktop Services profile path.


  1. Launch Adaxes Administration Console.

    Expand Adaxes service \ Configuration \ Business Rules \ Builtin and select After User Creation.


    For details on how to configure and activate the Business Rule, see Automate User Provisioning.





    Alternatively, you can create a separate Business Rule to update Remote Desktop Services profile path.

    • In Adaxes Administration Console, right-click your Adaxes service, point to New and click Business Rule.



    • Enter a name for the new Business Rule and click Next.
    • On the Triggering Operation page, select User in the Object Type list.
    • Select After and then select Creating a User.



    • Click Next and follow instructions of the wizard.
  2. To add an Update User action to the Business Rule, do the following:


    • Click Add new action set.


    • Right-click Do nothing and select Add Action in the context menu.


    • In the Add Action dialog, select the Update the User action.

    • Click Add in the Action Parameters section.


    • Select the Remote Desktop Services Settings property.


    • Click the button embedded in the New value field.


    • Specify the Remote Desktop Services profile path in the TerminalServicesProfilePath field.

      To set a unique profile path for each user, you need to use value references (e.g. %username%). When the Business Rule is executed, the value references will be replaced with corresponding property values of the new user's account.


      Example:

      \\SERVER\%department%\%username%

      After replacing the value references, the path will look as follows:
      \\SERVER\Sales\johndoe


    • Click OK three times.
  3. Optionally, you may want the Business Rule to set the profile path only if certain conditions are met. To assign a condition, right-click the action and select Add Condition in the context menu.




    In the following example, the profile path is set on the condition that the Employee Type property of the new user account equals Subcontractor.


  4. Click Save changes.

Business Rules are triggered only for operations performed via Adaxes. To handle changes made outside of Adaxes, e.g. using Active Directory Users and Computers, you can use Scheduled Tasks.

See Also

Open tutorial filtering

Got questions?
Support Forum