[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 recipientand may contain confidential or privileged information. If you are notthe intended recipient, any disclosure, copying, use or distribution ofthe information included in the message and any attachments isprohibited. If you have received this communication in error, pleasenotify us by reply e-mail and immediately and permanently delete thismessage and any attachments. Thank You.
RE: [ActiveDir] WMI OS Caption
Devon, download scriptomatic. It’ll build the code you require. :m:dsm:cci:mvp marcusoh.blogspot.com From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Harding, Devon Sent: Wednesday, December 28, 2005 5:41 PM To: ActiveDir@mail.activedir.org 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.
RE: [ActiveDir] WMI OS Caption
Here you go. Set objWMIServices = Getobject ("winmgmts:root\CIMv2")Set objWMIInstances = objWMIServices.InstancesOf ("Win32_OperatingSystem")For Each objWMIInstance In objWMIInstances WScript.Echo objWMIInstance.CaptionNext You can also use an enhanced version of scriptomatic, called WMI Code Creator v1.0 http://www.microsoft.com/downloads/details.aspx?FamilyID=2cc30a64-ea15-4661-8da4-55bbc145c30e&DisplayLang=en 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 PMTo: ActiveDir@mail.activedir.orgSubject: RE: [ActiveDir] WMI OS Caption Devon, download scriptomatic. It’ll build the code you require. :m:dsm:cci:mvp marcusoh.blogspot.com From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Harding, DevonSent: Wednesday, December 28, 2005 5:41 PMTo: ActiveDir@mail.activedir.orgSubject: [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 recipientand may contain confidential or privileged information. If you are notthe intended recipient, any disclosure, copying, use or distribution ofthe information included in the message and any attachments isprohibited. If you have received this communication in error, pleasenotify us by reply e-mail and immediately and permanently delete thismessage and any attachments. Thank You.