Solved

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

Posted on 2004-04-06
12
551 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
 
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
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 
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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Suggested Solutions

Recently, a new law in my state forced us to get a top-to-bottom analysis of all of our contract client's networks. While we have documentation, it was spotty at best for some - and in any event it needed to be checked against reality. That was m…
SHARE your personal details only on a NEED to basis. Take CHARGE and SECURE your IDENTITY. How do I then PROTECT myself and stay in charge of my own Personal details (and) - MY own WAY...
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

863 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

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now