?
Solved

Script to get info from (my computer/properties/support information) Image Version

Posted on 2008-11-03
1
Medium Priority
?
433 Views
Last Modified: 2013-12-07
If posible to script to get the image version on the computer on my network

I can see the version of the image when i right click on my computer and when i click on support information
0
Comment
Question by:CarlosReyes1
1 Comment
 
LVL 3

Accepted Solution

by:
kg69 earned 1500 total points
ID: 22870421
Dim oSh, oEx, OS
Set oSh=CreateObject("WScript.Shell")
Set oEx=oSh.Exec("%COMSPEC% /C ver")
Do While oEx.Status=0
   WScript.Sleep 100
Loop
While Len(os)<1
os=Replace(oEx.StdOut.ReadLine,vbCrLf,"")
Wend
WScript.Echo "OS=" & os

===============
Run via cscript <yourscript.vbs>

This script is from http://www.expertsforge.com/Web-Development/Tutorial-298.asp

Although if you load Powershell from Microsoft. you could always just do a:
Get-WmiObject Win32_OperatingSystem | format-list *
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
David Varnum recently wrote up his impressions of PRTG, based on a presentation by my colleague Christian at Tech Field Day at VMworld in Barcelona. Thanks David, for your detailed and honest evaluation!
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
Suggested Courses

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question