09-07-2005, 01:50
|
#1
|
|
Inactive
Join Date: Feb 2004
Location: There's no place like 127.0.0.1
Services: Depends on the person and the price they're offering
Posts: 12,384
|
Remote Server Shutdown
Is there anyway I can remotely shut down a server running Windows Server 2003?
The box is wired to my router which is then wirelessly connected to my laptop.
I know that when I shut the server down normally I have to put in a reason for it being shutdown.
What I'd like to be able to do is send a command from the laptop that just shuts the server down straight away.
Anybody know if this can be done?
|
|
|
09-07-2005, 02:04
|
#2
|
|
Inactive
Join Date: Oct 2003
Location: East Midlands
Age: 48
Services: Rural BB - Radio Link via Virgin Fibre
Posts: 2,947
|
Re: Remote Server Shutdown
if the laptop is XP you can use:
shutdown /r /m \\servername
in the "run" prompt
add the switch "/f" if you want to force all programs to close immeadiately
__________________
all switches work equally well with a dash, -m, -f, -r etc.
|
|
|
09-07-2005, 02:05
|
#3
|
|
Inactive
Join Date: Feb 2004
Location: There's no place like 127.0.0.1
Services: Depends on the person and the price they're offering
Posts: 12,384
|
Re: Remote Server Shutdown
Ok, tried that.
I keep getting an Access Denied message.
I can ping the server ok though so it doesn't appear to be a connectivity problem.
|
|
|
09-07-2005, 02:07
|
#4
|
|
Inactive
Join Date: Oct 2003
Location: East Midlands
Age: 48
Services: Rural BB - Radio Link via Virgin Fibre
Posts: 2,947
|
Re: Remote Server Shutdown
put "shutdown /?" into a command prompt for a full list of available switches
|
|
|
09-07-2005, 02:07
|
#5
|
|
Inactive
Join Date: Feb 2004
Location: There's no place like 127.0.0.1
Services: Depends on the person and the price they're offering
Posts: 12,384
|
Re: Remote Server Shutdown
Do I need to supply a reason code ( /d )?
It normally asks for a reason when I shut down from the server.
Ohhh..... Thinking about it, my account on the Laptop doesn't have Admin rights on the server, could that be it?
|
|
|
09-07-2005, 02:08
|
#6
|
|
Inactive
Join Date: Oct 2003
Location: East Midlands
Age: 48
Services: Rural BB - Radio Link via Virgin Fibre
Posts: 2,947
|
Re: Remote Server Shutdown
Quote:
|
Originally Posted by Raistlin
Ok, tried that.
I keep getting an Access Denied message.
I can ping the server ok though so it doesn't appear to be a connectivity problem.
|
are you logged in with a recognised admin account from the servers point of view?
|
|
|
09-07-2005, 02:09
|
#7
|
|
Inactive
Join Date: Feb 2004
Location: There's no place like 127.0.0.1
Services: Depends on the person and the price they're offering
Posts: 12,384
|
Re: Remote Server Shutdown
Quote:
|
Originally Posted by s1lv3r
are you logged in with a recognised admin account from the servers point of view?
|
I don't think I am actually, and I can't see a switch that will allow me to specify an Admin account either.
|
|
|
09-07-2005, 02:11
|
#8
|
|
Inactive
Join Date: Oct 2003
Location: East Midlands
Age: 48
Services: Rural BB - Radio Link via Virgin Fibre
Posts: 2,947
|
Re: Remote Server Shutdown
Quote:
|
Originally Posted by Raistlin
Thinking about it, my account on the Laptop doesn't have Admin rights on the server, could that be it?
|
 , we both wrote about that at the same time.
yes, you will need admin rights
__________________
just imagine if M$ had created a Server OS you could shut down remotely without admin rights.. lol, it would be an sysadmin's worst nightmare
|
|
|
09-07-2005, 02:12
|
#9
|
|
Inactive
Join Date: Feb 2004
Location: There's no place like 127.0.0.1
Services: Depends on the person and the price they're offering
Posts: 12,384
|
Re: Remote Server Shutdown
Is there any way that I can run the shutdown command AS another user (ie as an Admin acount from the Server)?
I know the Username and Password.
__________________
Quote:
|
Originally Posted by s1lv3r
just imagine if M$ had created a Server OS you could shut down remotely without admin rights.. lol, it would be an sysadmin's worst nightmare
|
TBH I'm suprised that they haven't
|
|
|
09-07-2005, 02:17
|
#10
|
|
Inactive
Join Date: Oct 2003
Location: East Midlands
Age: 48
Services: Rural BB - Radio Link via Virgin Fibre
Posts: 2,947
|
Re: Remote Server Shutdown
can't you add your laptop account as an admin on the server?
|
|
|
09-07-2005, 02:19
|
#11
|
|
Inactive
Join Date: Feb 2004
Location: There's no place like 127.0.0.1
Services: Depends on the person and the price they're offering
Posts: 12,384
|
Re: Remote Server Shutdown
I could do, I was trying to resist doing that though as I didn't want the profile that I'm logged in as at the moment to be continually connected to the server with Admin rights.
I suppose that's the only way I'm going to be able to do it though.
|
|
|
09-07-2005, 02:19
|
#12
|
|
-
Join Date: Jun 2003
Location: Somewhere
Services: Virgin for TV and Internet, BT for phone
Posts: 26,546
|
Re: Remote Server Shutdown
Quote:
|
Originally Posted by Raistlin
Is there any way that I can run the shutdown command AS another user (ie as an Admin acount from the Server)?
I know the Username and Password.
__________________
Quote:
|
Originally Posted by s1lv3r
just imagine if M$ had created a Server OS you could shut down remotely without admin rights.. lol, it would be an sysadmin's worst nightmare
|
TBH I'm suprised that they haven't 
|
To run any command as another user, use the "Runas" command. The format is
Quote:
|
runas /user:domain\username /pass:password "command.exe par1 par2 par3"
|
where "domain" is the either the name of the domain, or the name of the remote server. Username and password should be obvious. Substitute the actual program for "command.exe" and it's parameters for "par1","par2" and "par3"
Bear in mind that the program uses the account you specify, so if you specify account that doesn't have access to your local system, you might run into problems.
|
|
|
09-07-2005, 02:24
|
#13
|
|
Inactive
Join Date: Oct 2003
Location: East Midlands
Age: 48
Services: Rural BB - Radio Link via Virgin Fibre
Posts: 2,947
|
Re: Remote Server Shutdown
nice one stu  I was hitting google while you typed that
|
|
|
09-07-2005, 02:31
|
#14
|
|
Inactive
Join Date: Feb 2004
Location: There's no place like 127.0.0.1
Services: Depends on the person and the price they're offering
Posts: 12,384
|
Re: Remote Server Shutdown
Still can't get it to work, I keep getting a message that the login/password is incorrect.
I know that both are right, so I'm not sure what's going on.
I think this might be a topic that I have to have another look at in the morning, my eyelids are starting to close now.
Thanks for the help tonight guys.
|
|
|
09-07-2005, 02:32
|
#15
|
|
Inactive
Join Date: Jun 2003
Location: Los Angeles, CA
Age: 47
Posts: 6,343
|
Re: Remote Server Shutdown
In other news, Windows users discover sudo.
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT. The time now is 10:45.
|