Solved

I want to reboot "office computer" from my home.

Posted on 2004-04-06
12
552 Views
Last Modified: 2013-12-04
I have pcAnywhere running on my office and home computers.  Sometimes pcAnywhere  freezes up and I need to reboot my office computer.  (Currently, I call in and have someone walk into my office and power off/power on the computer).

My office computer is on a Domain Controller network running Windows 2000 Server.

I can VPN into the office SERVER (that is running Windows 2000 Server) successfully.

Is there a way I can create a "program/batch" file on the SERVER, that, when executed, will reboot my office computer?

Thanks for your help.

0
Comment
Question by:jimdorman
  • 4
  • 4
  • 2
  • +2
12 Comments
 
LVL 3

Expert Comment

by:ewall
ID: 10770432
The Resource Kit Tools for the NT/2000/XP operating systems contain an executable called SHUTDOWN.EXE that allow you to force a shutdown or reboot across the network (if you have admin-level privileges on the target PC). If your office PC is one of those and your login has local admin privs, then this is a go. I'm searching for the download links now...
0
 

Author Comment

by:jimdorman
ID: 10770448
I did a search.

I found c:\winnt\system32\shutdown.exe
and c:\winnt\system32\dllcache\shutdown.exe

Is this what I need?  I have domain admin priviledges.
0
 
LVL 3

Assisted Solution

by:ewall
ewall earned 125 total points
ID: 10770497
Oh, and I just remembered that XP and Windows Server 2003 both include SHUTDOWN.EXE by default... Just type "shutdown /?" inside a command prompt to get the syntax. You'll probably want to do something like "shutdown -r -f -t 5 -m \\your_pc_name"

Or, if you've got NT 4.0, here's the link to download the Resource Kit Tools for NT 4.0 (_only_): http://download.microsoft.com/download/winntsrv40/rktools/1.0/NT4/EN-US/sp4rk_i386.Exe

~ewall
0
Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

 
LVL 3

Expert Comment

by:ewall
ID: 10770687
Yes, that should do it... But you're going to need that program on your _server_ that you're logging into, so you can run it there to send the reboot message across the network to your PC.

So check if the server's got a SHUTDOWN.EXE file, or copy the one from your c:\winnt\system32\ folder to the server. Then decide on your parameters (/? to get the list) and try it out...

Hope that helps! ~ewall
0
 

Author Comment

by:jimdorman
ID: 10770784
The shutdown.exe program is located in c:\winnt\system32
and in a "Shutdown" folder on the Server.

I successfully VPN'ed into the Server

I received the following error message:
Universal naming conventions paths are not supported
after I typed the following line:

\\ServerComputer\ShareName\Shutdown\ShutdownComputer.bat

What is the problem.  I am running Windows XP Pro on my home computer.

The ShutdownComputer batch file contains the following:
shutdown.exe -r -f -m \\KG01



0
 

Author Comment

by:jimdorman
ID: 10770797
What should the batch file "say"?
0
 
LVL 3

Expert Comment

by:ewall
ID: 10770899
Actually, it's not the batch file that's causing the problem here, it's the command calling it...

...which makes me think, if you're VPN'ed into the network, you might be able to run the command from your PC. (So nevermind that stuff about having the shutdown command on the server; I think I had a brainfart there.) Er, so if you have the batch file on your home PC, try running it from there... It might ask for authentication (if the username/password you use at home is different than what you use at work, most likely; you could even add this authentication to the batch file in the line before the shutdown command, if you want to make it easier).

Sorry for the confusion; it's been a long day... ~ewall
0
 
LVL 38

Accepted Solution

by:
Rich Rumble earned 125 total points
ID: 10771179
Type "shutdown.exe" on your run line, a GUI should pop up, you just need to fill in the blanks, \\computer  place check marks for force programs to close and save, start the countdown at 30 seconds... or 1 second. As long as you can get to the computer at your office, which will probably mean being connected to the VPN (virtual private network)
Once VPN'd in you can either issue the shutdown remotely, or VNC (virtual network computer) or TS (terminal service) into the computer, and go to start shutdown as Ewall has said. I think VPN and VNC may have been confused, as the two are not alike in function, but are in initials :)

If you had a PC that was powered off, and you needed it rebooted, you'd need a NIC in the computer  that needs to be started that can listen for "wake-on lan" instructions. Then you'd need to issue the wake-on lan to that PC (by mac address typically)  But it's much easier if you VNC/TS into one and go to start.
-rich
0
 
LVL 12

Expert Comment

by:trywaredk
ID: 10772467
To run a batch-file you can't use UNC-path \\ServerComputer\ShareName\

You have to map a drive to \\ServerComputer\ShareName\

NET USE X: \\ServerComputer\ShareName Persistent:no

Then run your batch-file X:\Shutdown\ShutdownComputer.bat

Many Regards
Jorgen Malmgren
IT-Supervisor
Denmark

:o) Your brain is like a parachute. It works best when it's open
0
 
LVL 12

Expert Comment

by:trywaredk
ID: 10772476
0
 
LVL 16

Expert Comment

by:JamesDS
ID: 10772729
Actually if you're VPN'd in you can run shutdown.EXE locally and give it the UNC path of your server. If there is a problem with name resolution, you may have to use the IP address of your server instead

Cheers

JamesDS
0
 

Author Comment

by:jimdorman
ID: 10776279
Thanks for your help.
0

Featured Post

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Many people tend to confuse the function of a virus with the one of adware, this misunderstanding of the basic of what each software is and how it operates causes users and organizations to take the wrong security measures that would protect them ag…
Article by: btan
The intent is not to repeat what many has know about Ransomware but more to join its dots of what is it, who are the victims, why it exists, when and how we respond on infection. Lastly, sum up in a glance to share such information with more to help…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question