![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | 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 Specs![]() |
| | #2 (permalink) |
| | 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 Specs![]() |
| | #3 (permalink) |
| | 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 Specs![]() |
| | #4 (permalink) |
| | 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 Specs![]() |
| | #5 (permalink) |
| | 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 Specs![]() |
![]() |
| 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 | |||