The error comes from WMI, saying that "The requested instance could not be
found."
Error Result : 0x80041002 ( -2147217406 )
ID Defined as : WBEM_E_NOT_FOUND
Error Type : OLE HRESULT Error
Facility : FACILITY_ITF 0x00000004 ( 4 )
Severity : SEVERITY_ERROR 0x00000001 ( 1 )
Code : 0x00001002 ( 4098 )
Source Error file : Errors from WBEMcli.h
Message Text : WBEM (Web Based Enterprise Management) SDK Error
(E-Mail Removed)
Please reply only to the newsgroups.
This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use.
Copyright ╘ SQLDev.Net 1991-2004 All rights reserved.
"VogelBsj" <(E-Mail Removed)> wrote in message
news:3C342D88-3808-48E0-BCDF-(E-Mail Removed)...
>
>
>
>
> These are some of the error messages I've found.
>
> S_OK (00000000)
> Returned when a method completes successfully.
>
> E_FILE_EXISTS (80041001)
> Returned when the module configuration file already exists in the
> specified location.
>
> E_NOT_CS_APPLICATION (80041002)
> Returned when the specified IIS Application is not a Commerce Server
> application.
>
> E_FILE_NOT_FOUND (80041003)
> Returned when the module configuration file cannot be found.
>
> E_APP_NOT_FOUND (80041004)
> Returned with the specified IIS Virtual Directory cannot be found.
>
> E_UNHANDLED (80041005)
> Returned when an unhandled error occurs.
>
> E_INVALID_MODULE (80041006)
> Returned when the specified module does not exist.
>
> E_INIT_MOD_INSTALL_FIRST (80041007)
> Returned if the IsBizDesk, AddModule, or RemoveModule methods are called
> before the Init method is called.
>
> E_INVALID_CATEGORY_FOR_MODULE (80041008)
> Returned when an invalid category is specified.
>
> E_IMPROPER_CS_APP (80041009)
> Returned when a configuration inconsistency is detected between Commerce
> Server and IIS. The object must be run locally on the same machine where
> the physical Business Desk files exist.
>
>
>
> "BC" wrote:
>
>> Hi,
>>
>> I am trying to run some vbscripts on my computer, but I always get the
>> following failure.
>>
>> Can anybody suggest a way out of this problem?
>> TIA
>> Bob
>>
>> The Error popup contains
>>
>> Script: small.vbs
>>
>> Line: 4
>>
>> Char: 1
>>
>> Error: 0x80041002
>>
>> Code: 80041002
>>
>> Source: null
>>
>> I am running SQL server 2000 with the WMI installed and service pack 3
>> applied on a Windows XP Pro machine with SP1 applied.
>>
>> THe script is:
>>
>> sComputer = "QEMS-02" '-- name of the computer where SQL Server is
>> installed
>>
>> sSQLServer = "QEMS-02" '-- name of the SQL server instance
>>
>> wscript.echo "Before instance"
>>
>> set oInstance = GetObject("winmgmts:{impersonationLevel=impersonate}//" &
>> _
>>
>> sComputer & "/root/MicrosoftSQLServer:MSSQL_SQLServer.Name=" & _
>>
>> Chr(34) & sSQLServer & Chr(34))
>>
>> wscript.echo "After instance"
>>
>>
>>
>>