Solved

Cannot find the file wmic

By default wmi is installed on windows 2000 server, and the first time you run "wmic" in command line, it should install the wmic by itself. But in my windows2000, although there is "wmi.dll" in C:/ WINNT/system32, when I type "wmi" or "wmic" in command line, it would warn "cannot find the file 'wmi' (or one of its components). Make sure the path and filename are correct and that all required libraries are available)" or "cannot find the file 'wmic' (or one of its components). Make sure the path and filename are correct and that all required libraries are available)".
Does anybody know how to solve this problem?
Thanks in advance.
6 answers Last reply Best Answer
More about cannot find file wmic
  1. jianjiacc said:
    when I type "wmi" or "wmic" in command line, it would warn "cannot find the file 'wmi' (or one of its components).


    Are you really sure that the vmic command should be available on Windows 2000? From what I remember wmic was introduced with Windows XP / 2003.
  2. ricno said:
    Are you really sure that the vmic command should be available on Windows 2000? From what I remember wmic was introduced with Windows XP / 2003.

    Yes, as many webpages say, "WMI comes installed on all of Microsoft's modern operating systems (Windows 2000, Windows XP, Windows 2003, Windows Vista and Windows 20081). " http://www.poweradmin.com/help/enableWMI.aspx
    In addition, I can't find wmi resources available for windows2k. Those downloads are Just for windows95/98.
  3. Best answer
    Wmi exists on 2000, but the command line tool wmic wasn't introduced until XP. Have a look here: http://technet.microsoft.com/en-us/library/bb742610.aspx . If you want to use wmic to manage wmi on a 2000 machine you have to do it remotely frpm an XP (or later) computer.
  4. Ijack said:
    Wmi exists on 2000, but the command line tool wmic wasn't introduced until XP.


    That was my memory around this and that the introdution of the CLI tool made it much easier to explore/work with WMI in Windows XP and forward.
  5. Best answer selected by jianjiacc.
  6. Thanks to you guys all.
Ask a new question

Read More

Windows 2000 Command Line Windows