What to do when the only domain controller in a network gets useless and Team Foundation Server is installed in the workgroup edition.

I came accross this issue after a server broke down and there seemed to be a fault in the back up plan. After installing a new domain, i added the new users to the domain. Now i wanted to setup a connection to the TFS server. I found out there was a problem with the licensed users group. This group has a fixed number of 1-5 users. The company had 5 users in the licensed user group, so there was no way to add a new user to this group. In fact there was no user that had access to the server, because all licensed users where part of the old domain and the new domain users where not licensed on the server.

After a lot of seeking through the internet i tried the reinstall option because there wasn't a good post about how to solve the problem. Reinstall through the add/remove programms in the control panel. Reboot the system. My user was added to the licensed users group, there were no other users in the group, problem solved.