Friday, March 26, 2010

Never Disable IPV6 on SBS 2008!!!

Today I worked on a interesting issue.

One of my client holds a SBS Server with all roles like DNS, AD & Exchange 2007.

Actual issue: WMI not connecting from Monitoring Server. Getting error "No more threads can be created in the system. (Exception from HRESULT: 0x800700A4)"

In order to resolve this issue, rebooted SBS Server which caused another problem.
The server got stuck during booting, on “Applying Computer Settings" and was never booted up completely. Connected to Computer Management console from another comupter and verified eventlogs and services. Identified that Exchange Services were not started. Hence computer stuck on Applying Computer Settings.
 Tried booting the server in "Safe Mode with Networking", but all efforts were gone in vain.
After researching alot (for more than 2 hours) found that IPV6 was disabled on this SBS 2008 box.
Apparently, that’s what an SBS Server does ,when you kill some of it’s most critical services. I quickly learned that disabling IPV6 on an SBS 2008 server is extremely dangerous.

Stopping IPV6 leads to multiple failing services, and will cause your server to hang during booting as a result

The Solution

So, I had to re-enable IPV6. The fastest – and probably only – way was to boot the server into Safe Mode with networking services enabled. It’ll allow you to re-enable the protocol. Start the server again, and give it some time. Booting will take a few minutes longer than usual, but all your problems caused by
disabling IPV6 should be fixed now.

And reboot fixed DCOM/WMI Errors too..

Happy Learning!!!

Thursday, March 4, 2010

How to enable Remote Desktop remotely

To enabling Remote Desktop using regedit, follow these steps:

  1. Run REGEDIT from Start>Run
  2. Click on File, then select Connect Network Registry
  3. Type the remote computer IP or host name in the Enter the object name to select and the click OK
  4. If you don't have permission to access the remote computer, the logon screen will show up. Type the username and password for the remote computer. Then click OK.
  5.  Now, the remote computer is listed in the Registry Editor.
  6. Browse to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server, in the right panel, seelct fDenyTSConnection (REG_DWORD). Change the value data from 1 (Remote Desktop disabled) to 0 (Remote Desktop enabled).
  7. Close the registry