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 - Accessing "System Information"

Reply
 
Old 06-21-2007   #1 (permalink)
Roman Rozinov


 
 

Accessing "System Information"

Is there a programmatic way to access "System Information" as the GUI does?
If it's done purely via WMI, is there a document that specifies which WMI
objects were aggregated? Obviously, powershell is the way to script these
days.

My System SpecsSystem Spec
Old 06-21-2007   #2 (permalink)
gil.qi.zhang@gmail.com


 
 

Re: Accessing "System Information"

On Jun 21, 1:46 pm, Roman Rozinov
<RomanRozi...@discussions.microsoft.com> wrote:
> Is there a programmatic way to access "System Information" as the GUI does?
> If it's done purely via WMI, is there a document that specifies which WMI
> objects were aggregated? Obviously, powershell is the way to script these
> days.


Hi, Roman:

Yes Of course powershell has the ability to access "System
Information". Check this:

get-help get-wmiobject -examples

BR.
Gil

My System SpecsSystem Spec
Old 06-23-2007   #3 (permalink)
Hal Rottenberg


 
 

Re: Accessing "System Information"

On Jun 21, 1:46 am, Roman Rozinov > If it's done purely via WMI, is
there a document that specifies which WMI
> objects were aggregated?


The answer to this is there are several tools by Microsoft and others
which let you browse WMI objects. Try these three places:

http://www.microsoft.com/technet/scr.../createit.mspx

http://thepowershellguy.com/blogs/po...er-part-1.aspx

http://www.primalscript.com/Free_Tools/index.asp

Also as someone mentioned recently you gotta get PowerTab. That makes
autocompletion of the WMI objects extremely...usable.

http://thepowershellguy.com/blogs/po.../powertab.aspx

My System SpecsSystem Spec
Old 06-23-2007   #4 (permalink)
Hal Rottenberg


 
 

Re: Accessing "System Information"

On Jun 21, 1:46 am, Roman Rozinov
<RomanRozi...@discussions.microsoft.com> wrote:
> Is there a programmatic way to access "System Information" as the GUI does?


I'll go a little further and show you how you can find and output some
of this information.

# Get-WmiObject Win32_OperatingSystem

SystemDirectory : D:\WINDOWS\system32
Organization : HR
BuildNumber : 2600
RegisteredUser : HR
SerialNumber : xxxxx-xxxx-xxxx-xxxx
Version : 5.1.2600

# $win32OS = Get-WmiObject Win32_OperatingSystem
# $win32OS | get-member -MemberType property


TypeName: System.Management.ManagementObject#root
\cimv2\Win32_OperatingSyste
m

Name MemberType Definition
---- ---------- ----------
BootDevice Property System.String
BootDevic...
BuildNumber Property System.String
BuildNumb...
BuildType Property System.String
BuildType...
Caption Property System.String
Caption {...
[and so on]

7# $win32OS.Name
Microsoft Windows XP Professional|D:\WINDOWS|\Device
\Harddisk1\Partition1

Win32_ComputerSystem is a good one to check out as well.

My System SpecsSystem Spec
Old 06-23-2007   #5 (permalink)
Keith Hill [MVP]


 
 

Re: Accessing "System Information"

"Hal Rottenberg" <halr9000@gmail.com> wrote in message
news:1182609315.695545.169260@c77g2000hse.googlegroups.com...
> On Jun 21, 1:46 am, Roman Rozinov
> <RomanRozi...@discussions.microsoft.com> wrote:
>> Is there a programmatic way to access "System Information" as the GUI
>> does?

>
> I'll go a little further and show you how you can find and output some
> of this information.
>
> # Get-WmiObject Win32_OperatingSystem
>
> SystemDirectory : D:\WINDOWS\system32
> Organization : HR
> BuildNumber : 2600
> RegisteredUser : HR
> SerialNumber : xxxxx-xxxx-xxxx-xxxx
> Version : 5.1.2600
>
> # $win32OS = Get-WmiObject Win32_OperatingSystem
> # $win32OS | get-member -MemberType property


or to see all the property values:

Get-WmiObject Win32_OperatingSystem | format-list *

--
Keith

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
System Information - "Can't Collect Information" Vista General
"Extensible Authentication Protocol" service gives "The system cannot find the file specified" error Vista networking & sharing
What do "Windows Update" and "system restore" have in common? Vista General
Error: "Cannot convert "System.Object[]" to "System.Int32"." PowerShell
delete "system volume information" Vista General


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