Advertisement
Guest User

Untitled

a guest
Jun 14th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. dim myshell
  2.  
  3. for i = 10 to 30
  4.     host = "e1117w" & i
  5.     cmd = "psexec \\" & host & " ipconfig >> c:\temp\out.txt"
  6.     set myshell = Wscript.CreateObject("Wscript.shell")
  7.     myshell.run cmd
  8. next
  9. set myshell = Nothing
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement