Cannot Ping, unable to initialize windows sockets

Help!

I had a domain controller at a remote location. I needed to demote this server then promote it to a DC again. However, the demotion was unsuccessful and its data in Active directory remained. I managed to remove the data from the active directory using adsiedit.exe.

Now when i tried to promote the Member server to a DC again it said it could not locate the domain or a domain controller. Obviously something was up so i tried to ping one of our domain controllers but it comes up with the following message:

'unable to initialize the windows sockets interface, error code 0'

Any ideas what has happened here?

200 points up for grabs as i need to get this server back up as a domain controller pretty soon.

Thanks in adavnce,

Baikie
BaikieAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Da1KingCommented:
You Winsock registry entries and such got corrupted during the demotion.  This happens frequently on Windows XP machines because of Spyware.  As such there is a utility you can download and run to help resolve the issue.  It is normally reserved for Windows XP however you should be ok on a Windows 2000 machine.  However make sure you have everything backed up just in case.

http://www.webattack.com/get/winsockxpfix.html

Or you can try the following first and if they fail try the above.  From a command prompt run the following:

netsh interface reset all <press enter>

netsh winsock reset <press enter>

Then restart the server.
BaikieAuthor Commented:
Sorry, forgot to mention that i had already tried the winsockxpfix but with no joy.

I tried using the 'netsh interface reset all' but got the following error:

'Initialization Function ??????1 in IPMONTR.DLL failed to start with error code 10107
The following helper dll cannot be loaded: DHCPMON.DLL
The following helper dll cannot be loaded: WINSMON.DLL'

Does this shine any light on the problem?

Thanks for the reply,

Baikie
Da1KingCommented:
Baikie here is a link that has instructions for the exact error that was thrown.  Even though this article mentions Windows XP the methods should apply for Windows 2000 as well.

http://www.z123.org/techsupport/xpipzero.htm

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
BaikieAuthor Commented:
Ok cheers,

Fixed it by deleting the Winsock and Winsock2 entries from the registry, uninstalling TCP/IP then re-installing.

Everything back to normal.

Thanks for the reply,

Iain
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows 2000

From novice to tech pro — start learning today.