How to reinstall WMI on WXP-SP2



Hi,
I'm trying to run some VBScripts that access WMI, including WMI
Scriptomatic.
They all fail at statements like:
Set objWMIService = GetObject("winmgmts:" & _
"{impersonationLevel=impersonate}!\\.\root\cimv2")
with error:Invalid Syntax and code: 800401E4.

I think my WMI system has been trashed because my
Windows\System32\WBEM folder contains just a few files
and subfolders, while my laptop on which WMI Scriptomatic runs fine, has
many more files and subfolders there.

I've posted to Microsoft's WMI newsgroup, but got no responses.

Is there a way to just reinstall WMI?

-Paul Randall


.



Relevant Pages

  • Search files on remote computer
    ... Because the NT-machines, I can't use WMI. ... Set Fso=createobject'Then, Set the Drives ... to search for files and subfolders. ... '* If there is a computer not powered on, the script ends unexpected :-( ...
    (microsoft.public.scripting.vbscript)
  • Re: How to reinstall WMI on WXP-SP2
    ... which is basically a VBScript which is intended to verify the setup and the ... core elements of WMI based on information in the registry and the WMI ... Paul Randall wrote: ... many more files and subfolders there. ...
    (microsoft.public.scripting.vbscript)
  • Re: How to reinstall WMI on WXP-SP2
    ... Paul, when all else fails, why not just try it? ... Paul Randall wrote: ... I'm trying to run some VBScripts that access WMI, ... many more files and subfolders there. ...
    (microsoft.public.scripting.vbscript)
  • Modifying datecreated property
    ... Anybody knows how we can modify the datecreated property on a folder and all ... subfolders using either WSH or WMI? ...
    (microsoft.public.scripting.vbscript)
  • RE: WMI (error 4200)
    ... Do you have enough permission to execute your WMI calls in the current ... machine and did those calls fail on other Wondows 2003 machines? ...
    (microsoft.public.win32.programmer.wmi)