• Welcome to Tux Reports: Where Penguins Fly. We hope you find the topics varied, interesting, and worthy of your time. Please become a member and join in the discussions.

Restart remote computer

J

JClark

Flightless Bird
Hello Group:

Both Systems: Windows XP/SP3

I use Windows remote desktop from home to my office computer.
Everything works fine unless I have to restart the office computer
from home. Every command I've tried from the home computer just shuts
the office computer down, and does not restart it. (The remote office
computer does not have a CMOS or other startup password preventing its
retarting.)

Here's what I've tried:

1. Start|Run|Taskmgr--->Shutdown|Restart
(CTRL-ALT-DEL) of course typed on the home keyboard only brings up the
taskmgr for the home computer.)

2. ALT-CTRl-END, and then choose "restart"
3. Batch commands such as this one (I didn't write any of them):

:START
cls
@echo off
echo.
echo Remote Desktop Client - shutdown or restart
echo.
echo When you use Remote Desktop you do not have
echo the usual restart/shutdown choices.
echo This will RESTART or SHUTDOWN the remote client
echo according to your choice.
echo.
echo 1. Restart
echo 2. Shutdown
echo 3. Abort
echo.
set /p userinp= Choose a number(1-3):
set userinp=%userinp:~0,1%
if "%userinp%"=="1" goto restart
if "%userinp%"=="2" goto shutdown
if "%userinp%"=="3" goto end
echo invalid choice
goto start
:restart

*******************************************************************
I'd be grateful for any suggestions. Maybe it's something on the
remote computer which keeps it from restarting remotely.
Thanks!

Jack
 
T

The poster formerly known as 'The Poster Formerly

Flightless Bird
On 9/3/2010 7:07 AM, JClark wrote:
> Hello Group:
>
> Both Systems: Windows XP/SP3
>
> I use Windows remote desktop from home to my office computer.
> Everything works fine unless I have to restart the office computer
> from home. Every command I've tried from the home computer just shuts
> the office computer down, and does not restart it. (The remote office
> computer does not have a CMOS or other startup password preventing its
> retarting.)
>
> Here's what I've tried:
>
> 1. Start|Run|Taskmgr--->Shutdown|Restart
> (CTRL-ALT-DEL) of course typed on the home keyboard only brings up the
> taskmgr for the home computer.)
>
> 2. ALT-CTRl-END, and then choose "restart"
> 3. Batch commands such as this one (I didn't write any of them):

<snip>
> *******************************************************************
> I'd be grateful for any suggestions. Maybe it's something on the
> remote computer which keeps it from restarting remotely.
> Thanks!
>
> Jack


You need the shutgui.exe tool from Microsoft. I believe it came with
the NT 4 and 2000 server utility packs. I'm sure you can find it if you
google for it.
 
B

Bert Hyman

Flightless Bird
In news:qfo186d619e7kapmit7s1bik27ko099n8a@4ax.com JClark
<jclark@invalid.com> wrote:

> I use Windows remote desktop from home to my office computer.
> Everything works fine unless I have to restart the office computer
> from home. Every command I've tried from the home computer just shuts
> the office computer down, and does not restart it. (The remote office
> computer does not have a CMOS or other startup password preventing its
> retarting.)


Have you tried simply opening up a command window and entering

shutdown -r

?

If you're sitting at your office computer will "shutdown -r" work?

--
Bert Hyman St. Paul, MN bert@iphouse.com
 
J

JClark

Flightless Bird
On Fri, 03 Sep 2010 08:41:04 -0500, The poster formerly known as 'The
Poster Formerly Known as Nina DiBoy' <me951@privacy.com> wrote:

>On 9/3/2010 7:07 AM, JClark wrote:
>> Hello Group:
>>
>> Both Systems: Windows XP/SP3
>>
>> I use Windows remote desktop from home to my office computer.
>> Everything works fine unless I have to restart the office computer
>> from home. Every command I've tried from the home computer just shuts
>> the office computer down, and does not restart it. (The remote office
>> computer does not have a CMOS or other startup password preventing its
>> retarting.)
>>
>> Here's what I've tried:
>>
>> 1. Start|Run|Taskmgr--->Shutdown|Restart
>> (CTRL-ALT-DEL) of course typed on the home keyboard only brings up the
>> taskmgr for the home computer.)
>>
>> 2. ALT-CTRl-END, and then choose "restart"
>> 3. Batch commands such as this one (I didn't write any of them):

><snip>
>> *******************************************************************
>> I'd be grateful for any suggestions. Maybe it's something on the
>> remote computer which keeps it from restarting remotely.
>> Thanks!
>>
>> Jack

>
>You need the shutgui.exe tool from Microsoft. I believe it came with
>the NT 4 and 2000 server utility packs. I'm sure you can find it if you
>google for it.

I have the Windows 2000 Resource Kit on CD. I'll look there and try
it.

Thanks.

Jack
 
J

JClark

Flightless Bird
On 03 Sep 2010 13:59:34 GMT, Bert Hyman <bert@iphouse.com> wrote:

>In news:qfo186d619e7kapmit7s1bik27ko099n8a@4ax.com JClark
><jclark@invalid.com> wrote:
>
>> I use Windows remote desktop from home to my office computer.
>> Everything works fine unless I have to restart the office computer
>> from home. Every command I've tried from the home computer just shuts
>> the office computer down, and does not restart it. (The remote office
>> computer does not have a CMOS or other startup password preventing its
>> retarting.)

>
>Have you tried simply opening up a command window and entering
>
>shutdown -r
>
>?
>
>If you're sitting at your office computer will "shutdown -r" work?

I haven't tried either. The usual Windows shutdown routine works fine
in the office.
Thanks much.

I appreciate all replies and will work through the issue and post back
what seems to be the best solution.

Jack
 
T

Tim Meddick

Flightless Bird
You need to use the shutdown command; type "shutdown /i" at a Command
Prompt (either choose "Command Prompt" from "Accessories" on the Windows
Start Menu or type "cmd.exe" into the "Run" box).

Using the command: shutdown /i - with the [/i] switch, brings up an
easy-to-use user-interface dialog box. In this, there is an empty panel
near the top, in which you pres either the "Add" or the "Browse" button to
add a remote computer to this space.

You would then choose what you want the remote PC to do (Shutdown, Restart,
Logoff ) from the drop-down list, below the box above.

Then you choose a number of seconds for the system to wait until it
executes the desired task in another box below that.

And, finally, you can type a message that will be displayed on the remote
computer.

Hope this helps.

==

Cheers, Tim Meddick, Peckham, London. :)




"JClark" <jclark@invalid.com> wrote in message
news:qfo186d619e7kapmit7s1bik27ko099n8a@4ax.com...
> Hello Group:
>
> Both Systems: Windows XP/SP3
>
> I use Windows remote desktop from home to my office computer.
> Everything works fine unless I have to restart the office computer
> from home. Every command I've tried from the home computer just shuts
> the office computer down, and does not restart it. (The remote office
> computer does not have a CMOS or other startup password preventing its
> retarting.)
>
> Here's what I've tried:
>
> 1. Start|Run|Taskmgr--->Shutdown|Restart
> (CTRL-ALT-DEL) of course typed on the home keyboard only brings up the
> taskmgr for the home computer.)
>
> 2. ALT-CTRl-END, and then choose "restart"
> 3. Batch commands such as this one (I didn't write any of them):
>
> :START
> cls
> @echo off
> echo.
> echo Remote Desktop Client - shutdown or restart
> echo.
> echo When you use Remote Desktop you do not have
> echo the usual restart/shutdown choices.
> echo This will RESTART or SHUTDOWN the remote client
> echo according to your choice.
> echo.
> echo 1. Restart
> echo 2. Shutdown
> echo 3. Abort
> echo.
> set /p userinp= Choose a number(1-3):
> set userinp=%userinp:~0,1%
> if "%userinp%"=="1" goto restart
> if "%userinp%"=="2" goto shutdown
> if "%userinp%"=="3" goto end
> echo invalid choice
> goto start
> :restart
>
> *******************************************************************
> I'd be grateful for any suggestions. Maybe it's something on the
> remote computer which keeps it from restarting remotely.
> Thanks!
>
> Jack
 
J

JClark

Flightless Bird
On Mon, 6 Sep 2010 00:22:28 +0100, "Tim Meddick" <timmeddick@o2.co.uk>
wrote:

>You need to use the shutdown command; type "shutdown /i" at a Command
>Prompt (either choose "Command Prompt" from "Accessories" on the Windows
>Start Menu or type "cmd.exe" into the "Run" box).
>
>Using the command: shutdown /i - with the [/i] switch, brings up an
>easy-to-use user-interface dialog box. In this, there is an empty panel
>near the top, in which you pres either the "Add" or the "Browse" button to
>add a remote computer to this space.
>
>You would then choose what you want the remote PC to do (Shutdown, Restart,
>Logoff ) from the drop-down list, below the box above.
>
>Then you choose a number of seconds for the system to wait until it
>executes the desired task in another box below that.
>
>And, finally, you can type a message that will be displayed on the remote
>computer.
>
>Hope this helps.
>
>==
>
>Cheers, Tim Meddick, Peckham, London. :)
>
>
>
>
>"JClark" <jclark@invalid.com> wrote in message
>news:qfo186d619e7kapmit7s1bik27ko099n8a@4ax.com...
>> Hello Group:
>>
>> Both Systems: Windows XP/SP3
>>
>> I use Windows remote desktop from home to my office computer.
>> Everything works fine unless I have to restart the office computer
>> from home. Every command I've tried from the home computer just shuts
>> the office computer down, and does not restart it. (The remote office
>> computer does not have a CMOS or other startup password preventing its
>> retarting.)
>>
>> Here's what I've tried:
>>
>> 1. Start|Run|Taskmgr--->Shutdown|Restart
>> (CTRL-ALT-DEL) of course typed on the home keyboard only brings up the
>> taskmgr for the home computer.)
>>
>> 2. ALT-CTRl-END, and then choose "restart"
>> 3. Batch commands such as this one (I didn't write any of them):
>>
>> :START
>> cls
>> @echo off
>> echo.
>> echo Remote Desktop Client - shutdown or restart
>> echo.
>> echo When you use Remote Desktop you do not have
>> echo the usual restart/shutdown choices.
>> echo This will RESTART or SHUTDOWN the remote client
>> echo according to your choice.
>> echo.
>> echo 1. Restart
>> echo 2. Shutdown
>> echo 3. Abort
>> echo.
>> set /p userinp= Choose a number(1-3):
>> set userinp=%userinp:~0,1%
>> if "%userinp%"=="1" goto restart
>> if "%userinp%"=="2" goto shutdown
>> if "%userinp%"=="3" goto end
>> echo invalid choice
>> goto start
>> :restart
>>
>> *******************************************************************
>> I'd be grateful for any suggestions. Maybe it's something on the
>> remote computer which keeps it from restarting remotely.
>> Thanks!
>>
>> Jack

Tim, Thanks for your thoughts. I am in the process of trying out the
various suggestions I have received on this thread. First I went to
the office today and found that I can indeed restart it "on site"
with the various commands I tried, such as

shutdown -r -t 01 (from command line)

But that didn't work from home.
So I'm working on other efforts.
One error message stated I had to "force" the shutdown, so I added the
-f switch to the command line command. That didn't work.

The remote office computer also has ZoneAlarm Firewall, and I noticed
as it was shutting down there was a ZA message about "vector"
something or other. (The remote computer shut down but did not
restart.) So I'm stuck for working on the problem until I can get back
over there tomorrow and turn it back on.

So I'm trying various methods. Yours looks like a nice one.

Again, I'll report back what works when I get it working.

Jack
 
T

Twayne

Flightless Bird
In news:rtu886p16hmpbtmjo6cp145446hgutjclk@4ax.com,
JClark <jclark@invalid.com> typed:
> On Mon, 6 Sep 2010 00:22:28 +0100, "Tim Meddick"
> <timmeddick@o2.co.uk> wrote:
>
>> You need to use the shutdown command; type "shutdown /i"
>> at a Command Prompt (either choose "Command Prompt" from
>> "Accessories" on the Windows Start Menu or type "cmd.exe"
>> into the "Run" box).
>>
>> Using the command: shutdown /i - with the [/i] switch,
>> brings up an easy-to-use user-interface dialog box. In
>> this, there is an empty panel near the top, in which you
>> pres either the "Add" or the "Browse" button to add a
>> remote computer to this space.
>>
>> You would then choose what you want the remote PC to do
>> (Shutdown, Restart, Logoff ) from the drop-down list,
>> below the box above.
>>
>> Then you choose a number of seconds for the system to wait
>> until it executes the desired task in another box below
>> that.
>>
>> And, finally, you can type a message that will be
>> displayed on the remote computer.
>>
>> Hope this helps.
>>
>> ==
>>
>> Cheers, Tim Meddick, Peckham, London. :)
>>
>>
>>
>>
>> "JClark" <jclark@invalid.com> wrote in message
>> news:qfo186d619e7kapmit7s1bik27ko099n8a@4ax.com...
>>> Hello Group:
>>>
>>> Both Systems: Windows XP/SP3
>>>
>>> I use Windows remote desktop from home to my office
>>> computer. Everything works fine unless I have to restart
>>> the office computer from home. Every command I've tried
>>> from the home computer just shuts the office computer
>>> down, and does not restart it. (The remote office
>>> computer does not have a CMOS or other startup password
>>> preventing its retarting.)
>>>
>>> Here's what I've tried:
>>>
>>> 1. Start|Run|Taskmgr--->Shutdown|Restart
>>> (CTRL-ALT-DEL) of course typed on the home keyboard only
>>> brings up the taskmgr for the home computer.)
>>>
>>> 2. ALT-CTRl-END, and then choose "restart"
>>> 3. Batch commands such as this one (I didn't write any of
>>> them):
>>>
>>>> START
>>> cls
>>> @echo off
>>> echo.
>>> echo Remote Desktop Client - shutdown or restart
>>> echo.
>>> echo When you use Remote Desktop you do not have
>>> echo the usual restart/shutdown choices.
>>> echo This will RESTART or SHUTDOWN the remote client
>>> echo according to your choice.
>>> echo.
>>> echo 1. Restart
>>> echo 2. Shutdown
>>> echo 3. Abort
>>> echo.
>>> set /p userinp= Choose a number(1-3):
>>> set userinp=%userinp:~0,1%
>>> if "%userinp%"=="1" goto restart
>>> if "%userinp%"=="2" goto shutdown
>>> if "%userinp%"=="3" goto end
>>> echo invalid choice
>>> goto start
>>>> restart
>>>
>>> *******************************************************************
>>> I'd be grateful for any suggestions. Maybe it's something
>>> on the remote computer which keeps it from restarting
>>> remotely.
>>> Thanks!
>>>
>>> Jack

> Tim, Thanks for your thoughts. I am in the process of
> trying out the various suggestions I have received on this
> thread. First I went to the office today and found that I
> can indeed restart it "on site" with the various commands
> I tried, such as
>
> shutdown -r -t 01 (from command line)
>
> But that didn't work from home.
> So I'm working on other efforts.
> One error message stated I had to "force" the shutdown, so
> I added the -f switch to the command line command. That
> didn't work.
>
> The remote office computer also has ZoneAlarm Firewall, and
> I noticed as it was shutting down there was a ZA message
> about "vector" something or other. (The remote computer
> shut down but did not restart.) So I'm stuck for working on
> the problem until I can get back over there tomorrow and
> turn it back on.
>
> So I'm trying various methods. Yours looks like a nice one.
>
> Again, I'll report back what works when I get it working.
>
> Jack


You forgot to use a run-once on the remote machine to get them both
reconnected automatically. Once you shut down, the connecton has been broken
and needs to be re-established.
 
J

JClark

Flightless Bird
On Mon, 6 Sep 2010 13:21:35 -0400, "Twayne" <nobody@spamcop.net>
wrote:

>You forgot to use a run-once on the remote machine to get them both
>reconnected automatically. Once you shut down, the connecton has been broken
>and needs to be re-established.
>

HI Twayne,

I'm not sure what a "run-once" is. I'll look it up, of course. Perhaps
that would have helped. But I really wasn't so concerned about not
getting the two computers re-connected. I just couldn't get the remote
machine to actually restart rather than just shutdown, so that I had
to make a trip over there and manualy restart it

My major goal was just to get the remote machine to restart, even if
it was all alone over there in the office. At least then I could
reconnect to it with Remote Desktop. Impossible when the remote was
completely shut down.

Sorry to belabor the response.

But I seemed to have solved the problem now, and I'll post that as a
separate reply to my original post.

Thanks much, and I'll look up the "run-once" thing. Or if you have any
links to that, I'd be glad to review it.

Jack
 
J

JClark

Flightless Bird
Well it looks as though I now have solution to restarting the remote
office machine from my home computer. To re-iterate, there was never
any trouble connecting to the remote box so long as it was "on"! But
when I needed to reboot the remote machine, for any of the usual
reasons, updates, etc. it would simply shut down, forcing me to drive
over there and manually restart it.

But now a fairly simple command has worked in three tests:

shutdown -r -f -t01

The -f switch apparently "forces" the restart process. I did get one
message once that the system was locked and would have to be "forced"
to restart. But, again, it's working and hasn't done any harm so far.

I put the command in a little batch file, and it works fine! (I added
a line about the ZoneAlarm restarting the internet monitor, since the
restart command won't start until I get rid of that prompt.)

*****************************************************************

@echo off
: start
echo THIS COMMAND WILL RESTART
echo THE COMPUTER IN 01 SECOND
echo CLOSE ANY RUNNING PROGRAMS
echo BACK UP ANY NEEDED DATA
echo BEFORE PRESSING ENTER
echo CHOOSE "NO" WHEN PROMPTED
echo TO RESTART VECTOR INT MON
Pause

shutdown -r -f -t 01

: end

Many thanks to all for suggestions.

Jack
 
Top