Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

Vista - Question about WMI from a scripting beginner...

Reply
 
Old 01-22-2008   #1 (permalink)
akcorr


 
 

Question about WMI from a scripting beginner...

Not only am I new powershell but to scripting in general. Is there a listing
or way to get a listing of all WMI namespaces and classes?

My System SpecsSystem Spec
Old 01-22-2008   #2 (permalink)
Marco Shaw [MVP]


 
 

Re: Question about WMI from a scripting beginner...

akcorr wrote:
Quote:

> Not only am I new powershell but to scripting in general. Is there a listing
> or way to get a listing of all WMI namespaces and classes?
/\/\o\/\/ ("The PowerShell Guy") has a WMI Explorer all written in
PowerShell:

http://thepowershellguy.com/blogs/po...r/default.aspx

There are others out there also if you might neeed something else.

--
Microsoft MVP - Windows PowerShell
http://www.microsoft.com/mvp

PowerGadgets MVP
http://www.powergadgets.com/mvp

Blog:
http://marcoshaw.blogspot.com
My System SpecsSystem Spec
Old 01-22-2008   #3 (permalink)
Brandon Shell [MVP]


 
 

Re: Question about WMI from a scripting beginner...

Get-WmiObject -list

"akcorr" <akcorr@xxxxxx> wrote in message
news:B816F94F-B1ED-4A07-93F1-F84EB92B4558@xxxxxx
Quote:

> Not only am I new powershell but to scripting in general. Is there a
> listing
> or way to get a listing of all WMI namespaces and classes?
My System SpecsSystem Spec
Old 01-22-2008   #4 (permalink)
Marco Shaw [MVP]


 
 

Re: Question about WMI from a scripting beginner...

Brandon Shell [MVP] wrote:
Quote:

> Get-WmiObject -list
Only thing is that this provides the classes from the default namespace
only (root/cimv2).

Marco
My System SpecsSystem Spec
Old 01-22-2008   #5 (permalink)
Brandon Shell [MVP]


 
 

Re: Question about WMI from a scripting beginner...

If you specify the name space it will give you all the classes for the
namespace... that said.

Quote from OP "Not only am I new powershell but to scripting in general."
I think for starting off... Get-WMIObject -List will provide you more than
enough info to start.


More Info: http://technet.microsoft.com/en-us/l.../bb978691.aspx
From the Help.

-list <SwitchParameter>
Used to indicate that the names of the WMI classes in the WMI repository
namespace specified in the Namespace parameter should be retrieved and
displayed. The Default Namespace registry entry, contained in the registry
key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WBEM\Scripting is not used by this
cmdlet to determine the default names pace. If you specify the List
parameter, but not the Namespace parameter, the root\CIMV2 namespace is used
by default.



"Marco Shaw [MVP]" <marco.shaw@_NO_SPAM_gmail.com> wrote in message
news:%23FIBSmWXIHA.4440@xxxxxx
Quote:

> Brandon Shell [MVP] wrote:
Quote:

>> Get-WmiObject -list
>
> Only thing is that this provides the classes from the default namespace
> only (root/cimv2).
>
> Marco
My System SpecsSystem Spec
Old 01-23-2008   #6 (permalink)
urkec


 
 

Re: Question about WMI from a scripting beginner...

"Marco Shaw [MVP]" wrote:
Quote:

> akcorr wrote:
Quote:

> > Not only am I new powershell but to scripting in general. Is there a listing
> > or way to get a listing of all WMI namespaces and classes?
>
> /\/\o\/\/ ("The PowerShell Guy") has a WMI Explorer all written in
> PowerShell:
>
> http://thepowershellguy.com/blogs/po...r/default.aspx
>
> There are others out there also if you might neeed something else.
>
> --
> Microsoft MVP - Windows PowerShell
> http://www.microsoft.com/mvp
>
> PowerGadgets MVP
> http://www.powergadgets.com/mvp
>
> Blog:
> http://marcoshaw.blogspot.com
>
There is also CIM studio from WMI Administrative Tools:

http://www.microsoft.com/downloads/d...DisplayLang=en

I often use it, I think it can be very helpful.

--
urkec
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Beginner ASP Data Connection Question .NET General
VB.NET beginner Question .NET General
General beginner question PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46