Jump to content
Sign in to follow this  

Need to invoke a batch process in external computer

Recommended Posts



I need to invoke a batch process in another computer. I am trying to use RUNAS or RUNASWAIT command with no use, what could be the mistake I am doing.


$Server = "server1"
$ServerUser = "domain\user1"
$ServerPassword = "pswd1"
$ServerBatFilePath = "C:\Application\Launch"
$ServerBatFile = "GUIAutomation.bat"

$EnvGetPasswordStatus = RunAsWait($ServerUser, $Server, $ServerPassword, 0, $ServerBatFile, $ServerBatFilePath)

And while specifying $ServerUser do I have to give the Domain name or not.


$ServerUser = "Doaminname\Username"

Is there any other way of doing it.



Share this post

Link to post
Share on other sites

This probably isn't the other way you are looking for, but you could use TCP to transfer commands or files to a remote computer. The only problem is you have to run a client program on the other computer. If it is ok to run a client program on the remote computer, you can set up a listening port, connect to it, and receive any information that you want from the sender. I have a file transfer app in my sig. That should get you started on TCP.

[font="Verdana"] [size="2"]"[/size][/font]Failure is not an option -- it comes packaged with Windows"[font="Verdana"][size="2"] Gecko Web Browser[/size][/font][font="Verdana"][size="2"], [/size][/font][font="Verdana"][size="2"]Yahtzee![/size][/font][font="Verdana"][size="2"], Toolbar Launcher (like RocketDock)[/size][/font][font="Verdana"][size="2"]Internet Blocker, Simple Calculator, Local Weather, Easy GDI+ GUI [/size][/font][font="Verdana"][size="2"]Triangle Solver, TCP File Transfer, [/size][/font][font="Verdana"][size="2"]Valuater's Autoit Wrappers[/size][/font][font="Verdana"][size="3"][size="2"][size="2"]OOP In AutoIt[/size][/size][/size][/font][font="Verdana"][size="2"][size="1"]Using Windows XP SP3, 1GB RAM, AMD Athlon Processor @ 2.1 GHzCheck me out at gadgets.freehostrocket.com[/size][/size][/font]

Share this post

Link to post
Share on other sites

Thanks guys, i thought of using AutoIt functionality instead of PSexec, which would be easier.

REgarding run a client programe continuesly, I dont think I will get a permission for this.


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this