WinXP - peer-to-peer - run a bat on a remote PC

bekdik

Honorary Master
Joined
Dec 5, 2004
Messages
12,860
Do you know of a way of running a .bat file on PC-B from PC-A on a Wnxp-pro peer-to-peer network?

I want to run shutdown on the remote PC, but, being a peer-to-peer, I don't have sufficient rights.
 

neobyte

Well-Known Member
Joined
Oct 30, 2003
Messages
387
Quick Fix: Install VNC Server on the machine you want to connect to.
Longer Fix: Download and install a telnet/terminal server solution
Longest Fix: Write a small application to listen to a port for commands and execute as required.
 

xrapidx

Honorary Master
Joined
Feb 16, 2007
Messages
40,360
why dont you just run shutdown and specify the remote pc's name? i.e. Shutdown /m \\<REMOTEPC>

EDIT: Nevermind...saw the rights thing.

You could always create an account on both PCs with the same username and password... and us that to execute shutdown.
 

bekdik

Honorary Master
Joined
Dec 5, 2004
Messages
12,860
You could always create an account on both PCs with the same username and password... and us that to execute shutdown.

That doesn't work as the full names for administrator are
PC-A\administrator and PC-B\administrator and there's no way of giving local admin rights to the "other" one.

This problem doesn't arise if one's running AD as one can make any AD user a local administrator.
 

Nerfherder

Honorary Master
Joined
Apr 21, 2008
Messages
29,738
Make the bat file and then use the windows sheduler on the remote machine to run it?
 

thisgeek

Expert Member
Joined
Apr 22, 2005
Messages
3,372
Quick fix - go to www.sysinternals.com and download pstools. In there is a nifty lil util called PSEXEC. Actually, since you want to shutdown, there's PSSHUTDOWN too... along with a whole lot of other useful PS tools.
 

xrapidx

Honorary Master
Joined
Feb 16, 2007
Messages
40,360
That doesn't work as the full names for administrator are
PC-A\administrator and PC-B\administrator and there's no way of giving local admin rights to the "other" one.

It does work... look it up (google), as long as the username and passwords are the same on both sides (and its a workgroup)... its also covered in MS MCSE course.
 

bekdik

Honorary Master
Joined
Dec 5, 2004
Messages
12,860
Quick fix - go to www.sysinternals.com and download pstools. In there is a nifty lil util called PSEXEC. Actually, since you want to shutdown, there's PSSHUTDOWN too... along with a whole lot of other useful PS tools.

Ah, that's what I was looking for. Searched and did not find!

Thanks.
 
Top