Script help
- From: Christopher Martin <"chris.m at recruitlive.com.au">
- Date: Mon, 31 Jul 2006 12:31:55 +1000
I am a complete scripting newbie, and I am in a bit of a bind.
I need a script that runs "net use \\ipaddress\IPC$" for the entire length of a class C subnet. It's just a loop and the call of the command, but I have know idea about how to call the net command.
' ipc_setup.vbs
Option Explicit
Dim i
Wscript.Echo "Attach to all IPC$ named pipes"
Wscript.Echo ' blank line for spacing
i = 1
Do While i < 255
<call net use \\10.1.1.$i\IPC$ password /user:domain\account>
i = i + 1
Loop
Wscript.Echo
Hope someone can help me out.
.
- Follow-Ups:
- Re: Script help
- From: joseomjr@xxxxxxxxx
- Re: Script help
- Prev by Date: Re: group membership
- Next by Date: Re: Script help
- Previous by thread: remote machine execution
- Next by thread: Re: Script help
- Index(es):