I was working on my server the other night, and I found myself needing to get sound from my Windows 2008 box through an RDP (Remote Desktop Protocol) connection. Because we have a huge customer base with Windows 2008 installed now, I figured there may be someone else out there that would like to be able to hear sounds from their server on their local computer when connected, so I put together a quick walkthrough with how I got it to work:
Configuring Your Server
- Open Windows Services (Start -> Run -> Services.msc)
- Change the properties of the Windows Audio Endpoint Service and Windows Audio Service to “Automatic”. If the services are not already started, you can manually start them at this time.
- Open Terminal Services ( Start -> Run -> tsconfig.msc)
- Right-click on the RDP-TCP connection and bring up its properties. Go to the “Client Settings” and make sure that on “Redirection Audio” is not disabled.
- Fully log out and log back into the RDP connection to the server. You will see a balloon error on your speaker icon that states “No Audio Output Device is installed.”
Making Registry Changes
- You will now need to back up your registry and some registry changes.
- I want to reiterate the instruction to back up your registry … As with most technical guides/walkthroughs, SoftLayer will not be held liable for any corruptions that may result from you attempting these changes. The next two steps will show how to quickly back up your registry.
- Log into your server on an account with Administrator rights, and open regedit (Start -> Run -> regedit)
- Export the current registry (from the “File” menu) and copy it to a location off of your server so you have it backed up.
- Locate the following key:
HKEY_CLASSES_ROOT\AudioEngine\AudioProcessingObjects. This will contain several subkeys all each named with a GUID.
- Click on each subkey, then right-click and select “Permissions.” You will then click on the “Advanced” button and the “Owner” tab. The current owner should be listed as “TrustedInstaller.”
- Select the Administrative account and/or group from the list and click “OK” to change the ownership.
- Select the account you just chose and give it “Full Control,” then click “OK.”
- In the “Detail” box of each subkey, double-click on the
MinOutputConnections” and change it from 1 to 0, then click “OK.”
- Once you have done this for each subkey in
HKEY_CLASSES_ROOT\AudioEngine\AudioProcessingObjects, you can close regedit and restart the Windows Audio and Windows Audio Endpoint services.
Configuring Your RDP Client
Now that you have everything ready on the server, you just need to make sure your RDP client recognizes the audio. Log off of the server so you can configure your RDP client. Open RDP, go to the “Options” menu, and under “Local Resources,” select “Configure Remote Audio Settings.” Select “Play on this Computer,” and hit “OK.” Voila! You now should be able to hear sound from your Windows 2008 RDP connection.