?
Solved

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

Posted on 2004-04-06
12
Medium Priority
?
561 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 500 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
WatchGuard's M Series Appliances - Miecom Approved

WatchGuard's newest M series appliances were put to the test by Miercom.  We had great results and outperformed all of our competitors in both stateless and stateful traffic throghput scenarios! Ready to see how your UTM appliance stacked up? Download the Miercom Report!

 
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 500 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

2017 Webroot Threat Report

MSPs: Get the facts you need to protect your clients.
The 2017 Webroot Threat Report provides a uniquely insightful global view into the analysis and discoveries made by the Webroot® Threat Intelligence Platform to provide insights on key trends and risks as seen by our users.

Question has a verified solution.

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

Many of us in IT utilize a combination of roaming profiles and folder redirection to ensure user information carries over from one workstation to another; in my environment, it was to enable virtualization without needing a separate desktop for each…
Recently, I read that Microsoft has analysed statistics for their security intelligence report. It revealed: still, the clear majority of windows users do their daily work as administrator. An administrative account is a burden, security-wise. My ar…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses
Course of the Month13 days, 12 hours left to enroll

801 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