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
Related posts:
If you enjoyed this article, subscribe to receive more great content just like it.
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,
Subscribe to:
Post Comments (Atom)
Softwares Download
- Making a blog at blogspot
- Blog Setting
- How to backing up template
- How to backing up widgets
- How to changing template
- Make a Post Summary (Read more)
- Blog Comment send to @mail
- Adding search engine to blog
- Making a drop down menu
- Add google talk to blog (1)
- Making a News Paper Style Drop Caps
- Adding Recent Post & Recent Comments
- Adding Yahoo!Massenger icon
- Adding Google talk (2)
- Adding yahoo! Massenger Emoticons (1)
- Fix error "Widget IDs should be unique"
- Making a Table of Content
- Adding shoutbox
- Adding user online tracker
- Adding Statistic & tracker
- Adding digg button to post page
- Upload image to image hosting
- Making a Logo and image button
- Adding Favicon to URL address
- Adding a Clock to blog
- Removing the number of label
Our Friends