1

The problem

A license database for remote desktop in Windows 2012 got corrupted as helpdesk executes several times an script in powershell used to install licenses for Windows 2008 R2 and then for Windows 2012

The troubleshooting

Reviewing the licenses installed on the system, several entries were found some for Windows 2012 and others for Windows 2008.

We tried the following procedures in order to delete the licenses:

Removing and adding back the RDS role - nothing happened, as soon as the role was installed, the same corrupted database emerged

Rebuilding database - we tried all options... nothing happened

Executing some PS commands - nothing happened

More googling... basically the same commands as in the previous link - nothing happened

nighter
  • 91

1 Answers1

1

The answer

After several spent time we were able to recreate the database doing the following:

1.- Remove the RDS role

2.- Delete or rename the folder C:\Windows\System32\LServer (this is where the database file lives)

3.- Install the RDS role - the LServer folder will be created from the scratch so no license will be there

Extra

4.- Just in case, enable the feature RD Connection Broker if the server is intended for supporting several connections

I hope this helps anyone out there

nighter
  • 91