how to execute a batch file on 2 computers

February 9, 2011 at 10:05:05
Specs: Windows Vista, 2GB
how to execute a batch file on 2 computers simultaneously but it should not run on startup and must be able to be user terminated and display output
please help
i m trying but it does not work why??

See More: how to execute a batch file on 2 computers

Report •


#1
February 10, 2011 at 15:51:46
try psexec from sysinternals

or copy those to the local drive and then scdedule in windows scheduler

Subhash Chandra.
www.s-chandra.co.cc


Report •

#2
February 12, 2011 at 22:51:19
please sir can you briefly explain regarding psexec from sysinternal

Report •

#3
February 13, 2011 at 13:11:33
PsExec is a light-weight telnet-replacement that lets you execute processes on other systems, complete with full interactivity for console applications, without having to manually install client software. PsExec's most powerful uses include launching interactive command-prompts on remote systems and remote-enabling tools like IpConfig that otherwise do not have the ability to show information about remote systems.

InstallationJust copy PsExec onto your executable path. Typing "psexec" displays its usage syntax.

Using PsExecSee the July 2004 issue of Windows IT Pro Magazine for Mark's article that covers advanced usage of PsExec.

Usage: psexec [\\computer[,computer2[,...] | @file][-u user [-p psswd]][-n s][-l][-s|-e][-x][-i [session]][-c [-f|-v]][-w directory][-d][-<priority>][-a n,n,... ] cmd [arguments]

computer Direct PsExec to run the application on the computer or computers specified. If you omit the computer name PsExec runs the application on the local system and if you enter a computer name of "\\*" PsExec runs the applications on all computers in the current domain.
@file Directs PsExec to run the command on each computer listed in the text file specified.
-a Separate processors on which the application can run with commas where 1 is the lowest numbered CPU. For example, to run the application on CPU 2 and CPU 4, enter: "-a 2,4"
-c Copy the specified program to the remote system for execution. If you omit this option then the application must be in the system's path on the remote system.
-d Don't wait for application to terminate. Only use this option for non-interactive applications.
-e Does not load the specified account's profile.
-f Copy the specified program to the remote system even if the file already exists on the remote system.
-i Run the program so that it interacts with the desktop of the specified session on the remote system. If no session is specified the process runs in the console session.
-l Run process as limited user (strips the Administrators group and allows only privileges assigned to the Users group). On Windows Vista the process runs with Low Integrity.
-n Specifies timeout in seconds connecting to remote computers.
-p Specifies optional password for user name. If you omit this you will be prompted to enter a hidden password.
-s Run remote process in the System account.
-u Specifies optional user name for login to remote computer.
-v Copy the specified file only if it has a higher version number or is newer on than the one on the remote system.
-w Set the working directory of the process (relative to the remote computer).
-x Display the UI on the Winlogon desktop (local system only).
-priority Specifies -low, -belownormal, -abovenormal, -high or -realtime to run the process at a different priority. Use -background to run at low memory and I/O priority on Vista.
program Name of the program to execute.
arguments Arguments to pass (note that file paths must be absolute paths on the target system)

You can enclose applications that have spaces in their name with quotation marks e.g. "psexec \\marklap "c:\long name\app.exe". Input is only passed to the remote system when you press the enter key, and typing Ctrl-C terminates the remote process.

If you omit a username the remote process runs in the same account from which you execute PsExec, but because the remote process is impersonating it will not have access to network resources on the remote system. When you specify a username the remote process executes in the account specified, and will have access to any network resources the account has access to. Note that the password is transmitted in clear text to the remote system.

Copied from : http://technet.microsoft.com/en-us/...

Subhash Chandra.
www.s-chandra.co.cc


Report •

Related Solutions

#4
February 14, 2011 at 00:54:37
Sir does psexec allow the user to split the program into two seperate computers which are linked and allow processing of the program and simultaneously display the output ?


Report •

#5
February 14, 2011 at 09:08:19
i dont think so

Subhash Chandra.
www.s-chandra.co.cc


Report •


Ask Question