Re: 80041021 error - GetObject stdRegProv




Michael Harris (MVP) wrote:
tjlumpkin@xxxxxxxxxxx wrote:
I've got a script that works beautifully on 90% of the machines in our
enterprise environment. On a very small number of machines I see this
error code 80041021, with no further explanation. The line of script
it references is the WMI GetObject where I grab the stdRegProv.

Anyone have any ideas how to fix those few PCs (WinXP SP1 & SP2).

Maybe not much help but...

WMI Error Constants constant [WMI]
<http://msdn.microsoft.com/library/en-us/wmisdk/wmi/wmi_error_constants.asp?frame=true>

WBEM_E_INVALID_SYNTAX
0x80041021
Query is syntactically invalid



--
Michael Harris
Microsoft MVP Scripting

I did see that in a few searches. But the script runs flawlessly on
thousands of machines. So I'm puzzled by how it could be syntax.

Where are the WMI components located, and how can I reload/reregister
them if they are broke?

.



Relevant Pages

  • Re: Find Default Network Card NIC
    ... the code is identical on the two machines. ... For information about WMI you can start from the Microsoft Script Center ... Where NetConnectionID '' ...
    (microsoft.public.scripting.vbscript)
  • Re: Find Default Network Card NIC
    ... the code is identical on the two machines. ... Where can I look up all this useful WMI stuff? ... For information about WMI you can start from the Microsoft Script Center ...
    (microsoft.public.scripting.vbscript)
  • Re: WMI VBSCRIPT error 0x80041001
    ... The following script runs fine on SBS2003 and Vista Business. ... fails with error code 0x80041001 on XP Pro 64-bit, ... After a quick glance the script looks OK, so WMI may be corrupt. ... winmgmt /clearadap ...
    (microsoft.public.scripting.vbscript)
  • Re: WMI error on Win2003
    ... I was developping an application with VC++, which utilized WMI snmp ... I ran into the same error code as you. ... >>I am trying to run a script to monitor AD performance using WMI. ... >>W2K3 DCs I get the following error code when I run the script: ...
    (microsoft.public.win32.programmer.wmi)
  • Re: Permissions to execute the script
    ... I am using a vbscript to query the WMI classes. ... The script uses the ... On some machines, this vbscript works fine but on some machines this ... winmgmt /clearadap ...
    (microsoft.public.scripting.vbscript)

Loading