Click to See Complete Forum and Search --> : Logon Remote Computer


Mark Sadegursky
10-17-2002, 04:00 PM
Hi!

Hoping that someone can help me out. I need to log on using a script to a remote computer by specifying the IP address and a username and password to the remote box. I then need to be able to restart a service or just run a start and stop command. If someone has an example of a script that does this I would greatly appreciate it.

Thanks,
Mark

Ofir Odeny
10-20-2002, 10:33 AM
@Echo off
net use \10.100.100.11ipc$ /USER:My_Domain_NameMy_User_Name password
net stop Service_Name
net start Service_Name
net use net use \10.100.100.11ipc$ /delete


HAVE FUN MY FIEND.


------------
Mark Sadegursky at 10/17/2002 5:00:52 PM

Hi!

Hoping that someone can help me out. I need to log on using a script to a remote computer by specifying the IP address and a username and password to the remote box. I then need to be able to restart a service or just run a start and stop command. If someone has an example of a script that does this I would greatly appreciate it.

Thanks,
Mark