PC Review Forums Newsgroups Windows XP Windows XP WMI wmic run for the first time

Reply

wmic run for the first time

 
Thread Tools Rate Thread
Old 11-04-2007, 04:18 AM   #1
Unsettled
Guest
 
Posts: n/a
Default wmic run for the first time


It seems like when I run wmic on a machine for the first time, it seems
to lag -- which I'm guessing it's because it's caching all the data that
it's detecting.

It seems like this "caching" phenomenon is wmic-specific, because I know
I have queried the WMI database before with PHP via the COM interface.
But it seems the first time you run wmic it does it.

So, my question is, why?
  Reply With Quote
Old 11-06-2007, 07:12 PM   #2
Jonathan Liu [MSFT]
Guest
 
Posts: n/a
Default Re: wmic run for the first time

When you run WMIC for the first time the all the aliases are compiled, and
then any subesequent runs of WMIC should start immediately.

--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
--
"Unsettled" <unsettled@mbna.com> wrote in message
news:%23nbQKg%23eHHA.4220@TK2MSFTNGP03.phx.gbl...
> It seems like when I run wmic on a machine for the first time, it seems to
> lag -- which I'm guessing it's because it's caching all the data that it's
> detecting.
>
> It seems like this "caching" phenomenon is wmic-specific, because I know I
> have queried the WMI database before with PHP via the COM interface. But
> it seems the first time you run wmic it does it.
>
> So, my question is, why?


  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off