www.anthonygarmont.com
  • Home
  • Photo Blog
  • Portfolio
  • Tech Blog
  • Contact

RDS / VDI - Manually Editing Virtual Desktop Configuration Build OU

11/24/2020

0 Comments

 
I've run into a situation on several occasions where we've built a VDI collection, then due to some Active Directory housekeeping and changes, needed to edit the OU that VDI desktops get built in. For instance, when I created a collection, I wanted them built in:
OU=VDI,DC=MyAdDomain,DC=com
But now I want them built in:
OU=VDI-NEW,DC=MyAdDomain,DC=com

I looked at using the PowerShell command Set-RDVirtualDesktopCollectionConfiguration but there isn't an option to edit that according to the documentation for the command.

I found a way to do this using SQL and editing the Database.

Disclaimer: I'm assuming manually editing this DB is not officially supported by Microsoft. So this editing is done at your own risk. I tested this first on a test collection before changing anything in production. I suggest you do the same.

Using either SQL Server Mgmt Studio or your DB editor of choice, if you find the table called rds.VmProvisioning there is a field in the called UserGroupName that has the Active Directory Domain OU that your VDI desktops get built in. Just get the properties of your new OU using AD and going to the attributes and copying the distinguishedName value and pasting it into the field in the DB.

In order to get the changes to show up in Server Manager / RDS Management, I had to reload the entire Server Manager application. Once you do that though, your collection will now rebuild using the new OU.
0 Comments
    View my profile on LinkedIn

    Archives

    November 2020
    August 2019
    November 2018
    June 2015
    March 2015
    December 2014
    June 2013
    July 2012
    May 2012

    Categories

    All
    Active Directory
    ADCS
    Cloud Computing
    Microsoft Excel
    Microsoft Exchange
    Microsoft Hyper V
    Microsoft Hyper-V
    Microsoft VDI
    PKI
    Powershell
    Technical

    RSS Feed

    What I believe...
Powered by Create your own unique website with customizable templates.
  • Home
  • Photo Blog
  • Portfolio
  • Tech Blog
  • Contact