LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


Reply
  Search this Thread
Old 03-20-2007, 05:55 PM   #1
hacker supreme
Member
 
Registered: Oct 2006
Location: As far away from my username as possible
Distribution: Gentoo
Posts: 259
Blog Entries: 1

Rep: Reputation: 31
Shutting down Windows XP remotely.


Having got my LAN working perfectly well, I am looking for a way to shut down the other computer remotely, so I don't have to go downstairs to shut it down. (Yeah, it's an internet connection sharing thing. I work late into the night and I'm just too tired to traipse downstairs and shut it down.)

My preferred way would be to use an RPC or something similar.

Thanks for any help.

Last edited by hacker supreme; 03-20-2007 at 05:56 PM. Reason: hey, look, a spelling misteak!
 
Old 03-20-2007, 06:25 PM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
You can use rdesktop. It's like a VNC for Windows.
 
Old 03-20-2007, 06:29 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 24,114

Rep: Reputation: 5336Reputation: 5336Reputation: 5336Reputation: 5336Reputation: 5336Reputation: 5336Reputation: 5336Reputation: 5336Reputation: 5336Reputation: 5336Reputation: 5336
You can also use the task scheduler to run the PsShutdown command at the desired time. You can download PsShutdown from the MS website.
 
Old 03-20-2007, 06:38 PM   #4
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,272

Rep: Reputation: 154Reputation: 154
theres a utility thats part of the Windows (XP at least): shutdown. It can be used to remotely shutdown other computers.

edit: Assumes both computers are Windows XP
 
Old 03-20-2007, 06:45 PM   #5
hacker supreme
Member
 
Registered: Oct 2006
Location: As far away from my username as possible
Distribution: Gentoo
Posts: 259

Original Poster
Blog Entries: 1

Rep: Reputation: 31
macemoneta: Right, I'll try that...

Thanks for the prompt response. Although, I must admit I was hoping for a way to trigger the shutdown manually but remotely. Sort of like running a command that starts a batch file on the Windows PC. But thanks anyway.
 
Old 03-20-2007, 08:32 PM   #6
lurko
Member
 
Registered: Jun 2006
Location: Ontario, Canada
Distribution: Debian
Posts: 448

Rep: Reputation: 35
http://users.pandora.be/jbosman/applications.html
Quote:
Poweroff is a small program for Win95/98/NT/W2K/XP to schedule a shutdown/reboot/logoff/poweroff/Standby/Hibernate/Lock/Wake-On-LAN at a certain time. I also support command line options that allows poweroff to be used in batch scripts. It has a built-in scheduler, it allows you to run a program before doing the action, you can give a warning message to the user, wait for a process to finish before doing the action and full remote control is supported.
It's windows only though. I just now started it up without issue under WINE(edit: 0.9.25), but did not test any features (namely due to a lack of windows boxes I want to shutdown). Anyway, it's supposed to support remote machine shutdown(though I never tried to use that function back in the day and have no idea how or if it works, but I assume it does). I hope it's useful.

Last edited by lurko; 03-20-2007 at 08:35 PM.
 
Old 03-20-2007, 10:23 PM   #7
Shade
Senior Member
 
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418
Blog Entries: 1

Rep: Reputation: 46
If on a domain, you can run:

Code:
shutdown -s -t 0 -m \\machinename
From another windows box. If not on a domain, you may be able to specify a username and password via the CLI.

You could also use wmic to do the same. (Windows Management Interface Commandline)

Code:
wmic /node:machinename process call create "shutdown -s -t 0"
Both require admin rights and WinXP Pro.

-- Shade
 
Old 03-21-2007, 06:42 AM   #8
hacker supreme
Member
 
Registered: Oct 2006
Location: As far away from my username as possible
Distribution: Gentoo
Posts: 259

Original Poster
Blog Entries: 1

Rep: Reputation: 31
funny, after I posted my last post, I thought about using that tsshutdn thing with WINE.
That shuts down the PC and it can do it remotely. Well, I can but try.

EDIT: Nope. doesn't work. Ah well, onto rdesktop then.

Last edited by hacker supreme; 03-21-2007 at 08:03 AM.
 
Old 03-22-2007, 02:22 AM   #9
lurko
Member
 
Registered: Jun 2006
Location: Ontario, Canada
Distribution: Debian
Posts: 448

Rep: Reputation: 35
can't you enable terminal services on the Windows box and just log in to CMD or something (I assume your lan is behind a firewall)? I'm talking out of my ass here, it just seems like that's something that should be possible to me.

rdesktop is a great app though. Just enable remote desktop on the XP box and that's about it. You'll want to write a bash script/shortcut that includes your desired screen resoltion/depth and login detail(s) (which are all commandline options, you can leave out your password and be promted though), but then you're set.

Last edited by lurko; 03-22-2007 at 02:23 AM.
 
Old 03-22-2007, 03:43 AM   #10
Crito
Senior Member
 
Registered: Nov 2003
Location: Knoxville, TN
Distribution: Kubuntu 9.04
Posts: 1,168

Rep: Reputation: 53
Shutdown command is included with NT 4.0 and Windows 2000 resource kits too BTW.
http://support.microsoft.com/kb/317371
 
Old 03-23-2007, 05:02 PM   #11
hacker supreme
Member
 
Registered: Oct 2006
Location: As far away from my username as possible
Distribution: Gentoo
Posts: 259

Original Poster
Blog Entries: 1

Rep: Reputation: 31
Ah, thanks for all the help. I just threw RealVNC onto the windows PC and I can access it using vncviewer. (I found out why it didn't work, FIREWALL. Duh...)

But I can shut the Win Pc down from upstairs now. yay!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Shutting off X-Windows hkillen Linux - Newbie 2 09-17-2006 01:59 PM
Shutting Down the X Windows Daejavu Linux - General 9 07-28-2005 09:59 AM
Linux shutting down a windows machine. Pozican Linux - Networking 3 04-28-2005 05:57 PM
Linux remotely through Windows surban99 Linux - Newbie 14 05-04-2004 06:56 AM
shutting down linux from windows dave308 Linux - Networking 9 12-13-2001 08:09 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 12:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration