Here you go.
 
Set objWMIServices = Getobject ("winmgmts:root\CIMv2")
Set objWMIInstances = objWMIServices.InstancesOf ("Win32_OperatingSystem")
For Each objWMIInstance In objWMIInstances
       WScript.Echo objWMIInstance.Caption
Next

You can also use an enhanced version of scriptomatic, called WMI Code Creator v1.0    
It generates C#, VB.NET and _vbscript_ WMI code.
 
/Alain


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: Wednesday, December 28, 2005 11:57 PM
To: [email protected]
Subject: RE: [ActiveDir] WMI OS Caption

Devon, download scriptomatic.  It’ll build the code you require.

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Harding, Devon
Sent: Wednesday, December 28, 2005 5:41 PM
To: [email protected]
Subject: [ActiveDir] WMI OS Caption

 

How can I print out the OS Caption from WMI?  Trying to incorporate in a .vbs

 

Devon Harding

Windows Systems Engineer

Southern Wine & Spirits - BSG

954-602-2469

 


__________________________________
This message and any attachments are solely for the intended recipient
and may contain confidential or privileged information. If you are not
the intended recipient, any disclosure, copying, use or distribution of
the information included in the message and any attachments is
prohibited. If you have received this communication in error, please
notify us by reply e-mail and immediately and permanently delete this
message and any attachments. Thank You.

Reply via email to