1. Create a new registration token.

  2. Open Registry Editor.

  3. Go to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\RDInfraAgent.

  4. Select IsRegistered.

  5. In the Value data: entry box, type 0 and select Ok.

  6. Select RegistrationToken.

  7. In the Value data: entry box, paste the registration token from step 1.

    Screenshot of IsRegistered 0

  8. Open a PowerShell prompt as an administrator and run the following command to restart the RDAgentBootLoader service:

    PowerShellCopy

    Restart-Service RDAgentBootLoader
    
  9. Go back to Registry Editor.

  10. Go to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\RDInfraAgent.

  11. Verify that IsRegistered is set to 1 and there's nothing in the data column for RegistrationToken.

    Screenshot of IsRegistered 1