Today when I was playing around with my IIS 6.0, got the following error when tried to do an ENUM of / using ADSUTIL.VBS script.
C:\Inetpub\AdminScripts>adsutil enum /Microsoft (R) Windows Script Host Version 5.6Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.
ErrNumber: -2147221020 (0x800401E4)Error Trying To ENUM the Object (GetObject Failed):
Tried to know the meaning of this error code using the ERR tool.
C:\Inetpub\AdminScripts>err 0x800401E4# for hex 0x800401e4 / decimal -2147221020 MK_E_SYNTAX winerror.h# Invalid syntax# 1 matches found for "0x800401E4"
This didn't give me any clue what is wrong in my webserver. I just had a look on the dlls in my inetsrv folder. There was a file called adsiis.dll. Just wondering, if registering this dll may fix the problem. Tried registering this dll by the command regsvr32 adsiis.dll. To my surprise, the same command adsutil enum / ran like a champ!
So next time when you get this kind of error, you know what to do!
regsvr32 %windir%WINDOWS\SYSTEM32\INETSRV adsiis.dll