Cannot use WMI in VBScript
From: Tim (troepken@yahoo.com)
Date: 02/04/03
- Next message: Brian Fulmer [231282]: "Re: Windows NT domain login"
- Previous message: Skim: "Spell Check OE"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Tim" <troepken@yahoo.com> Date: Tue, 4 Feb 2003 10:05:51 -0800
I'm trying to simply learn VBScript from the VBScript
primer on technet, and on my XP home machine, when I run
the sample VBScript that gets free disk space from the C
drive, I get a dialog with the following:
Script: diskspace.vbs
Line: 2
Char: 1
Error: 0x80041001
Code: 80041001
Source: (null)
Now, this script runs fine on my Win2k pro machine. I
reinstalled the WMI service as per another posting, since
it didn't even show up in my services, and that now
starts, but I still get this error. The line in question
in the error is:
Set objWMIService = GetObject("winmgmts:")
So, it seems it can't connect to the service still. I
don't know if it's pertinent or not, but the WMI
Performance Adapter won't start on my machine with
a "Class not registered" error.
Any assistance is much appreciated.
Tim
- Next message: Brian Fulmer [231282]: "Re: Windows NT domain login"
- Previous message: Skim: "Spell Check OE"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|