Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- dim myshell
- for i = 10 to 30
- host = "e1117w" & i
- cmd = "psexec \\" & host & " ipconfig >> c:\temp\out.txt"
- set myshell = Wscript.CreateObject("Wscript.shell")
- myshell.run cmd
- next
- set myshell = Nothing
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement