Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Netstat using PSEXEC against server list | find string

 
Logged in as: Guest
arrSession:exec spGetSession 2,16,48009
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> Post a VBScript >> Netstat using PSEXEC against server list | find string
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Netstat using PSEXEC against server list | find string - 6/7/2007 2:36:46 AM   
  itdudeinmissouri

 

Posts: 9
Score: 0
Joined: 5/25/2007
Status: offline
Very simple code but useful if you need to search for a box connecting to a list of servers.   I have the serverlist.txt on the root of the C:  of course you need to have psexec installed, works well.

************code********************
Dim strCom
strCom = InputBox("Netstat query for Web Interface" & vbcrlf & _
"Please enter an IP address or network address", "Enter Node Address")
Set objShell = CreateObject("WScript.Shell")
objShell.Run "%COMSPEC% /k C: & cd C:\ & psexec @serverlist.txt netstat -n | find " & Chr(34) & strCom & Chr(34)
***********code*********************

Thank you very much Rischip and dm_4ever for your help!

_____________________________

Spencer
 
 
Post #: 1
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> Post a VBScript >> Netstat using PSEXEC against server list | find string Page: [1]
Jump to:





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
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts