Gathers info about your computer

Author Message
n2clarkster

  • Total Posts : 12
  • Scores: 0
  • Reward points : 0
  • Joined: 9/12/2009
  • Status: offline
Gathers info about your computer Saturday, October 03, 2009 11:13 AM (permalink)
0
'n2clarkster@yahoo.com www.vbsbytes.com
'The lines below execute dos commands to help me determine computer info.  This helps me for virus removal etc..
'the sleep commands are to slow the program down because otherwise it will execute to quickly. Tested on Vista
'the 0's at the end of the command line runs the .vbs invisible.
Set WshShell = WScript.CreateObject("WScript.Shell")
Dim message
MSGBOXTitle ="Gathers info!"
message = "Info.txt be located at the location you ran the script from.Thanks!"
WshShell.Run "cmd /c ipconfig /all >> info.txt",0
WScript.Sleep 2000
WshShell.Run "cmd /c ipconfig /displaydns >> info.txt",0
WScript.Sleep 2000
WshShell.Run "cmd /c hostname >> info.txt",0
WScript.Sleep 2000
WshShell.Run "cmd /c Net accounts >> info.txt",0  
WScript.Sleep 2000                                          
WshShell.Run "cmd /c systeminfo >> info.txt",0
WScript.Sleep 2000
WshShell.Run "cmd /c tasklist /svc >> info.txt",0
WScript.Sleep 2000
WshShell.Run "cmd /c netstat -an >> info.txt",0
WScript.Sleep 2000
WshShell.Run "cmd /c arp -a >> info.txt",0
WScript.Sleep 2000
MsgBox2 = MsgBox(message,vbExclamation,MSGBOXTitle)
 
#1
    Fredledingue

    • Total Posts : 572
    • Scores: 2
    • Reward points : 0
    • Joined: 5/9/2005
    • Location: Europe
    • Status: offline
    Re:Gathers info about your computer Sunday, October 04, 2009 6:19 AM (permalink)
    0
    Add , True to wait.

    Also you can add
    WshShell.Run "Info.txt"

    at the end of the script. ;)
    Fred
     
    #2

      Online Bookmarks Sharing: Share/Bookmark

      Jump to:

      Current active users

      There are 0 members and 1 guests.

      Icon Legend and Permission

      • New Messages
      • No New Messages
      • Hot Topic w/ New Messages
      • Hot Topic w/o New Messages
      • Locked w/ New Messages
      • Locked w/o New Messages
      • Read Message
      • Post New Thread
      • Reply to message
      • Post New Poll
      • Submit Vote
      • Post reward post
      • Delete my own posts
      • Delete my own threads
      • Rate post

      2000-2012 ASPPlayground.NET Forum Version 3.9