Ask a questionAsk a question
 

Answera question about wmic.exe

  • Monday, November 02, 2009 11:10 AM李连杰 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    WMIC.exe couldnot run ... error 0x80041001,my is "power users",


    C:\WINDOWS\system32\wbem>wmic
    Please wait while WMIC compiles updated MOF files.
    分析 Mof 文件: C:\WINDOWS\system32\wbem\Cli.mof(阶段错误 - 3)
    计算机返回错误 0x80041001

    C:\WINDOWS\system32\wbem>mofcomp cli.mof
    Microsoft (R) 32-bit MOF 汇编器版本 5.1.2600.5512
    版权所有 (C) Microsoft Corp. 1997-2001。保留所有权利。
    正在分析 MOF 文件: cli.mof
    MOF 文件分析成功
    将数据储存到储存库中...
    处理项目 1 时,出现了一个错误;该项目已在行 11 - 14 之间(文件 cli.mof 中)定义:
    错误号码: 0x80041003,设备: WMI
    描述: 访问遭到拒绝
    汇编器返回了错误 0x80041001
    C:\WINDOWS\system32\wbem>

    -----------------
    type cli.mof >i.txt

    line:11 - 14 :what is wrong?

    // Copyright (c) 1997-2003 Microsoft Corporation, All Rights Reserved

    // This schema is intended to be introduced into any namespace
    // in which aliases will be defined.

    #pragma autorecover
    #pragma classflags("forceupdate")

    #pragma Namespace("\\\\.\\root")

    instance of __Namespace
    {
     Name = "Cli";
    };

    #pragma Namespace("\\\\.\\root\\cli")

     [Description( "Instances of the CliQualifier class represent qualifiers that influence "
        "the handling of the associatied object. These qualifiers are drawn from the "
        "qualifiers on the underlying WMI object and should be handled the same way. "
        "For example ValueMap should be treated as a constraint on the values that "
        "may used with the Set verb on a property. The MaxLen qualifier should be "
        "treated as a constraint on the number of characters that can be provided "
        "on a Set.")]


Answers

  • Monday, November 02, 2009 1:42 PMMarco ShawMVP, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    SORRY !

    I am a new "guest",just to ENGLISH Forums

    where WMI development in microsoft.com/Forums?WMI is old technology ?

    Start here:
    http://msdn.microsoft.com

    That is the developer-focused forums.  Try to pick a topic that is the most relevant to the WMI development you're doing.  I'm not sure there is a general "WMI development" forum.

    WMI isn't necessarily old or out-of-date, it's just a broad subject.

All Replies

  • Monday, November 02, 2009 11:39 AMMarco ShawMVP, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    This is a PowerShell scripting/automation forum.  Please find a more appropriate forum on WMI development.
  • Monday, November 02, 2009 11:46 AM李连杰 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    SORRY !

    I am a new "guest",just to ENGLISH Forums

    where WMI development in microsoft.com/Forums?WMI is old technology ?
  • Monday, November 02, 2009 1:42 PMMarco ShawMVP, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    SORRY !

    I am a new "guest",just to ENGLISH Forums

    where WMI development in microsoft.com/Forums?WMI is old technology ?

    Start here:
    http://msdn.microsoft.com

    That is the developer-focused forums.  Try to pick a topic that is the most relevant to the WMI development you're doing.  I'm not sure there is a general "WMI development" forum.

    WMI isn't necessarily old or out-of-date, it's just a broad subject.
  • Tuesday, November 03, 2009 9:50 AM李连杰 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    thank you!

    I am ready to try power shell,but my accounts is power users groups,may I use it?


    http://marcoshaw.blogspot.com/  why can not open?
  • Tuesday, November 03, 2009 12:03 PMMarco ShawMVP, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    thank you!

    I am ready to try power shell,but my accounts is power users groups,may I use it?


    http://marcoshaw.blogspot.com/   why can not open?
    If PowerShell is installed on the machine you're trying to use, you should be able to use it for certain scenarios.

    You can't open my blog...  I don't know.  Maybe that blogging service is blocked from your work or home...
  • Tuesday, November 03, 2009 12:10 PM李连杰 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    thank you !

    you are friendly!