Hot News On The Net   »   Emma Watson will enter Brown University | Erin Andrews video peep | Tour de france stage 17 results | So you think you can dance results july 23 | Michael Jackson Memorial Booklet Program
Featured Posts
Basic Tutorials
Downloads
DOWNLOADS
Browsers
Recent Articles

Get System Info

Save the below code as systeminfo.vbs



On Error Resume Next

Const wbemFlagReturnImmediately = &h10
Const wbemFlagForwardOnly = &h20
dim sOutput


arrComputers = Array("localhost")
For Each strComputer In arrComputers

sOutput = sOutput & vbCrlf & " System Information---
http://world-of-xhacker.synthasite.com "
sOutput = sOutput & vbCrlf & "================================="

Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2")
Set colItems = objWMIService.ExecQuery("SELECT * FROM Win32_BIOS", "WQL", _
wbemFlagReturnImmediately + wbemFlagForwardOnly)

For Each objItem In colItems
sOutput = sOutput & vbCrlf & "Dell Tag Number: " & objItem.SerialNumber
Next
Next

strComputer = "."
For Each strComputer In arrComputers
sOutput = sOutput & vbCrlf & "========================================="
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2")
Set colItems = objWMIService.ExecQuery("SELECT * FROM Win32_ComputerSystem",
"WQL", _
wbemFlagReturnImmediately + wbemFlagForwardOnly)

For Each objItem In colItems
sOutput = sOutput & vbCrlf & "Model: " & objItem.Model
Next
Next
arrComputers = Array("localhost")
For Each strComputer In arrComputers

Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2")
Set colItems = objWMIService.ExecQuery("SELECT * FROM Win32_BIOS", "WQL", _
wbemFlagReturnImmediately + wbemFlagForwardOnly)

For Each objItem In colItems
sOutput = sOutput & vbCrlf & "BIOS Version: " & objItem.SMBIOSBIOSVersion
Next
Next


strComputer = "."
For Each strComputer In arrComputers
sOutput = sOutput & vbCrlf & "=============================================="

strComputer = "."
Set objWMIService = GetObject _
("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery _
("Select * From Win32_NetworkAdapterConfiguration " & _
"Where IPEnabled = True")
For Each objItem in colItems
For Each objAddress in objItem.IPAddress
sOutput = sOutput & vbCrlf & "IP Address: " & objAddress
sOutput = sOutput & vbCrlf & "MAC Address: " & objItem.MACAddress
Next
Next

Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2")
Set colItems = objWMIService.ExecQuery("SELECT * FROM Win32_ComputerSystem",
"WQL", _
wbemFlagReturnImmediately + wbemFlagForwardOnly)
For Each objItem In colItems
sOutput = sOutput & vbCrlf & "Domain or Workgroup: " & objItem.Domain
sOutput = sOutput & vbCrlf & "Computer Name: " & objItem.Caption
sOutput = sOutput & vbCrlf & "User Name: " & objItem.UserName
Next
Next



strComputer = "."
For Each strComputer In arrComputers
sOutput = sOutput & vbCrlf & "==============================================="

Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2")
Set colItems = objWMIService.ExecQuery("SELECT * FROM Win32_OperatingSystem",
"WQL", _
wbemFlagReturnImmediately + wbemFlagForwardOnly)

For Each objItem In colItems
sOutput = sOutput & vbCrlf & "Operating System: " & objItem.Caption
sOutput = sOutput & vbCrlf & "Service Pack: " & objItem.CSDVersion
sOutput = sOutput & vbCrlf & "Processes Running: " & objItem.NumberOfProcesses
Next

Wscript.Echo sOutput
Next




Function WMIDateStringToDate(dtmDate)
sOutput = sOutput & vbCrlf & dtm:
WMIDateStringToDate = CDate(Mid(dtmDate, 5, 2) & "/" & _
Mid(dtmDate, 7, 2) & "/" & Left(dtmDate, 4) _
& " " & Mid (dtmDate, 9, 2) & ":" & Mid(dtmDate, 11, 2) & ":" & Mid(dtmDate,13, 2))
End Function

Bookmark and Share
Share and Enjoy:

0 comments for this post

Leave a reply

Write your message here.
Please leave your Email Id so that I can contact you.
Thanks for your Valuable Suggestion,

We will keep You Updated...
Sign up to receive breaking news
as well as receive other site updates!

subscribe via email:


Your information will not be shared. Ever.
Advertise Here
RevolutionWooThemesElegant Themes
Theme ForestGorillaThemesWP WebHost
Upcoming Events
RevolutionWooThemesElegant Themes
Theme ForestGorillaThemesWP WebHost
Site Stats
Find Me
Follow SpicyTricks on Twitter. Only interesting tweets are shared

Subscribe and join my readers to keep up-to-date Issue in Feedburner

Our Friends