Re: Updated: Error on Win2K Server



Hi,
During weekend, I restarted the Windows Management Instrumentation
service and then it worked fine already. Thanks for help.

"Gerry Hickman" <gerry666uk@xxxxxxxxxxxxxxxx> wrote in message
news:uOkyST74GHA.2144@xxxxxxxxxxxxxxxxxxxxxxx
Hi Paul,

In that case it looks like WMI is seriously messed up on those servers.
How many Win2k servers did you test it on?

We are running a pure Win2k network and we use WMI as an essential part of
it, we run tasks nearly every night.

You may need to look at error logs, Event logs on these servers and also
look at the WBEM folder to see if anything looks odd. Also check the WMI
Control in the MMC on those machines.

In general WMI works perfectly on Win2k, both servers and clients.

Paul wrote:
Hi
I received this one on Win2K Servers.

Microsoft (R) Windows Script Host Version 5.1 for Windows
Copyright (C) Microsoft Corporation 1996-1999. All rights reserved.

D:\wmilocal.js(3, 1) SWbemLocator: Server execution failed

object is returned under WinXP and Win2003 Server.


"Gerry Hickman" <gerry666uk@xxxxxxxxxxxxxxxx> wrote in message
news:el8P5k04GHA.3732@xxxxxxxxxxxxxxxxxxxxxxx
Hi,

Please try this script to test your win2k servers, save it as
wmilocal.js and run it using CScript at a CMD prompt like this

CScript wmilocal.js

// wmilocal.js
var oLoc = new ActiveXObject("WbemScripting.SWbemLocator");
var oSvc = oLoc.ConnectServer(".", "root\\cimv2");
WScript.Echo(typeof oSvc);
oSvc = null;
oLoc = null;

Paul wrote:
This problem occured on all Win2K servers (Domain Controller and Member
Server) but NO problem with Win2003 Server (Member Server) and WinXP
terminal. Why was it so ? Seemingly the older OS got problem with it.
Any solution ?

"Paul" <paulw_win@xxxxxxxxx> wrote in message
news:Oz0025p4GHA.4820@xxxxxxxxxxxxxxxxxxxxxxx
I wrote a procedure in Visual Foxpro as below. It runs well under
WinXP but failed on the Win2K Server with Service Pack 4 installed.

objLocator = CREATEOBJECT("WBEMScripting.SWBEMLocator")
objService = objLocator.ConnectServer
objService.Security_.ImpersonationLevel=3
objcolInstalledPrinters = objService.ExecQuery("SELECT * FROM
Win32_Printer")
FOR EACH objPrinter IN objcolInstalledPrinters
MESSAGEBOX(objPrinter.DeviceID)
ENDFOR

The first line is ok. The second line caused

The error following error message appears
OLE |Dispatch exception code 0 from SWbemlocator: Server excution
failed

I'd then changed it to objService =
objLocator.ConnectServer(".","root\cimV2"), still the same. Indeed,
what's wrong with Win2K server ? How come no problem on WinXP ?
Thanks.



--
Gerry Hickman (London UK)




--
Gerry Hickman (London UK)


.



Relevant Pages

  • RE: Access Denied when running RSoP
    ... Can you run RSOP on SBS Server? ... 2> Test WMI. ... Starting with Microsoft Windows XP, the version of WMI should match the ...
    (microsoft.public.windows.server.sbs)
  • Re: EBS2008: Frage zu Preparation Wizards
    ... Der Preperation Wizard zeigt in diesem Fall aber keine Verweise auf weitere ... DNS und DHCP laufen auf dem Server ohne Fehler ... The Preparation Wizard uses Windows Management Interface (WMI) to scan ...
    (microsoft.public.de.german.backoffice.smallbiz)
  • Re: EBS2008: Frage zu Preparation Wizards
    ... schau bitte einmal genauer auf die Fehleranzeige im Preperation Wizard. ... The Preparation Wizard uses Windows Management Interface (WMI) to scan several network components. ... This is likely if server workloads in your environment are running on the Windows 2000 Server operating system. ...
    (microsoft.public.de.german.backoffice.smallbiz)
  • RE: Access Denied when running RSoP
    ... I can run RSOP locally on the SBS server ... All default WMI DCOM settings are ok. ... > 2> Test WMI (Windows Management Instrumentation). ...
    (microsoft.public.windows.server.sbs)
  • Re: Question about WMI connection and concurrent use
    ... My only server, which is allowed to make snmp queries [which I call the ... is one connection able to serve multiple outgoing ... Monitor WMI to see how many threads it is using and then ... > management server that can have multiple instances in order to gain ...
    (microsoft.public.win32.programmer.wmi)