Re: WMI not working

From: Peter L (pl_at_compmatters_at_yahoo.co.uk)
Date: 09/17/04


Date: 17 Sep 2004 03:58:43 -0700

Gerry Hickman <gerry666uk@yahoo.co.uk> wrote in message news:<#fI7WbomEHA.3876@TK2MSFTNGP15.phx.gbl>...
> Hi,
>
> You need to break this down into component parts and test each in turn.
> You appear to be trying three things at once:
>
> 1. "WMI scripts" are for managing remote machines, nothing to do with
> logging on.
>
> 2. Scriptomatic?? What's that? Maybe you need the scriptomatic newsgroup
> to deal with issues relating to it?
>
> 3. Logging on, what does this have to do with WMI?
>
> At a wild guess, it may be that you've tried to create some fancy logon
> script that tries to do something the user is not allowed to do.
>
> You need to clarify, I don't see how any of this relates to "WMI not
> working".
>
> [snip]

I'm not very au fait with WMI so maybe I confused terminology of WMI
Scripting and WMI Filters. My situation is that I was getting errors
relating to the use of WMI Filters being applied to Group Policy
Objects on a Windows Server 2003. These GPOs are applied as part of
user logon processing hence the link between WMI and logon. Of course
in this instace the WMI is being used for simple WMI Filter controls
rather than full on WMI scripting.

Scriptomatic is the free tool from the MS Scripting guys to enable
everyone to try out and get used to whats available from WMI. Because
I was getting errors during the WMI Filter processing that happened at
user logon, I thought I would try to reproduce the problem in a more
specific situation that I could control and debug more easily -
separate from the logon process. Hence I tried running one of the
simple WMI Scripts automatically generated from Scriptomatic.

This then led me to the "Class doesnt support Automation" error at
which point I was stumped as to whether I was hitting a WMI error or a
VB Script error. Hence the post.

Anyway... to cut a long story short... I have now solved my original
problem. The permissions in the registry on the server had been
corrupted. I reset Everyone group to have Full Control over the
HKEY_CLASSES_ROOT hive and this resolved the problem!



Relevant Pages

  • Re: WMI Reference
    ... You will be writing a complex custom application / script for that. ... A good way to get used to what Wmi is and the way it works is to use ... be detected by Sms, etc. ... Scriptomatic tool from the scripting tech center. ...
    (microsoft.public.sms.admin)
  • Re: 2 questions: uptime and last logged on users
    ... > For your computer uptime question: ... > ' Converts WMI Date and Time Format to standard date/time ... > torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway ...
    (microsoft.public.win32.programmer.wmi)
  • Re: security center
    ... but you can query the PC's via WMI (Windows Management Instrumentation) scripting. ... The below script is for the local computer, and would need to be modified to determine all PC's on your network/domain and then query each computer individually and report when there is a problem. ...
    (microsoft.public.windowsxp.security_admin)
  • Re: Copying and running processes on remote machines
    ... WMI Scripting Primer: Part 1 ... Managing Windows Registry with Scripting ...
    (microsoft.public.win32.programmer.wmi)
  • Re: Setting "User Must Change Password at next Logon" via script:Non-AD.
    ... > they logon. ... > DOS, VBS or WMI? ... Configuring a Local User Account So It Never Expires ... -- torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway Administration scripting examples and an ONLINE version of the 1328 page Scripting Guide: ...
    (microsoft.public.win2000.security)