How to run a local bat file on a remote computer
54,823
I would suggest using psexec which is part of the SysInternals Suite.
psexec \\remotemachine -u remoteuser -i -d cmd -c localdisk:\folder\batchfile.bat
-c
will copy from local path
Author by
train
Updated on September 18, 2022Comments
-
train almost 2 years
Is it possible to use psexec to run a local bat file on a remote computer (windows 7)? or would I have to first copy it over to the remote location and then run it?