UGN Security
Posted By: OaKz How to Shutdown -m //computername ? - 03/18/04 11:08 AM
This is the only thing in windowx XP's shutdown utility that i dont really understand...I know it will shutdown a computer remotely...What do i have to do before i could type "shutdown -s -m //computername" ...so that i dont get a message like
"access denied"?

Thanks in advance.....
Posted By: Ghost Re: How to Shutdown -m //computername ? - 03/19/04 07:57 AM
I've tried and have never been able to get it to work. If you want to shut it down remotly try starting the telnet service, and connecting to the computer with telnet. Once you're logged in to the computer you with to shut down, type "shutdown -s" and it will display the count down timer on the computer youre connected to, and after 30 seconds it will shut down.
Posted By: OaKz Re: How to Shutdown -m //computername ? - 03/19/04 10:00 AM
do mean i have to start a telnet session to a target without installing anything like a telnet server like winshell?I dont know about winXP having a built-in telnet server or anything that will take connections from port 23...do U mind sharing m8?

I used to work with winshell and it works, bad thing is AVs can detect it...so i thougth i could use some help with winXP built-in utility.
Posted By: Ghost Re: How to Shutdown -m //computername ? - 03/19/04 10:40 AM
Well Windows XP Professional has a built in telnet server. To enable it go to Start, Control Panel, Administrative Tools, Services, and scroll down the list for telnet. Double click it, set the Startup Type to automatic, and click the "Start" button. This starts the service, and sets it to automatically start every time you start windows. If your computer doesnt have a telnet server go to http://kpym.sourceforge.net#4 and download "KTS v1.06 Setup" and save it to the desktop so you know where it is when it finishes. When it finishes downloading, install it, go to Start, Control Panel, Administrative Tools, Services, and find "KPyM Telnet Service". Double click it, set it to start automatically, and click start. That starts the service, and you will be able to connect to that computer with telnet on port 23 and be able to remotly shut it down.
Posted By: OaKz Re: How to Shutdown -m //computername ? - 03/20/04 09:49 AM
wow,thanks for the details.
I've got to try it ryt away ...
Posted By: §intå× Re: How to Shutdown -m //computername ? - 03/21/04 06:10 AM
Quote:
Originally posted by Ghost:
Well Windows XP Professional has a built in telnet server. To enable it go to Start, Control Panel, Administrative Tools, Services, and scroll down the list for telnet. Double click it, set the Startup Type to automatic, and click the "Start" button. This starts the service, and sets it to automatically start every time you start windows. If your computer doesnt have a telnet server go to http://kpym.sourceforge.net#4 and download "KTS v1.06 Setup" and save it to the desktop so you know where it is when it finishes. When it finishes downloading, install it, go to Start, Control Panel, Administrative Tools, Services, and find "KPyM Telnet Service". Double click it, set it to start automatically, and click start. That starts the service, and you will be able to connect to that computer with telnet on port 23 and be able to remotly shut it down.
Ghost!! You have you have entered the helpful!!! You da man!
I have installed telnet, and followed the directions from ghost post. But when i type in shutdown -i -m //(computorname)it comes up with network path not found.

Im am using xp and am on a university network of over 100 pc's. hope you can help me.
Posted By: Ghost Re: How to Shutdown -m //computername ? - 03/21/04 06:18 PM
Well doing "shutdown -i" is going to display the user interface for this command, and it will ignore any flags beyond it. My previous post needs physical access to a computer to intall the telnet server. You then connect to that computer with telnet, login, and type "shutdown -s" to shut it down. What you're doing is telling the computer to display the GUI they made that interfaces with the shutdown utility. It doesnt do anything with the "-m" you put on the end of it. Also, when you type the name of the computer into the GUI and it cannot be found, it returns you to the command line utility and displays "the network path was not found". What you need to do is download and install the telnet server onto the computer you're trying to shut down (if you do not already have one). After you have done that, Go to Start, Run, and type in "telnet [ip address of computer youre trying to shut down]". So for example connecting to my computer i would type, "telnet 127.0.0.1". After you are connected to the computer and logged in, type "shutdown -s" and that will shut the computer down. That should enable you to shut the computer down.
thaks ill try it...im so excited. You should have seen me when i read how to change the recycle bin name.
This forum is soo cool.
thanx buddy.
i tried it. this is all fairly new to me.
I installed telnet on her pc and then went into run and did what you said. it cam up with:
login:
pass:
domain:

what do i put on these. Do I have to use telnet and make her own pass, domain ect. or do i make them on my telnet and use it for the shutdown.
Posted By: Ghost Re: How to Shutdown -m //computername ? - 03/22/04 03:02 AM
Ok, once you are connected to the computer you wish to shutdown with telnet, you have to login with a username that already exists for logging in to windows. So for example:
Code
login: Administrator
pass:00000
domain:
Note that the telnet server doesnt echo the charecters for the password back to you. So when you enter it it will really look like
Code
login:Administrator
pass:
domain
Also note that you dont have to enter anything for domain.
i am gettin an access denied now. but dont worry about it. i really have no idea what im doing. I will keep praticing though.
Posted By: Ghost Re: How to Shutdown -m //computername ? - 03/22/04 10:41 AM
well are you connected to the computer you wish to shut down with telnet, or are you still trying to remotley shut it down with out using telnet? This entire thread is about using telnet to connect to the computer, loging in, and then shuting that computer down. If you try to remote shutdown using "shutdown -m \\computername" its just going to return you to the command line with "access denied". What you need to do is connect to the computer you wish to shut down, login with a vaild username and password combination, and type "shutdown -s" into the command line which will then shut the computer down.
Posted By: OaKz Re: How to Shutdown -m //computername ? - 03/25/04 11:10 AM
m8, telneting the target computer and shutting it down really works.
Posted By: weeve Re: How to Shutdown -m //computername ? - 04/24/04 11:57 PM
heh humm, question, probably my first real one on the board. since their phasing out to GUI on xp+, and console is becoming almost non-existent. You can't shutdown into dos, you have like a almost UNIX like shell, but...it doesn't give you access to do nice things unless under admin, which is dangerous to be under all the time when online...anyway in linux you can su to root, and then exit out. So as to keep yourself safe.

Either way I'm wondering why the shutdown command is a topic here? Like why it's cool, when it may just be gone in 2-6 years do to the GUI, and 3d passover that MAY be happening. But..it does look to be. Either way no huffing, and puffing on anything please. Just a question on the truth of why you'd want to go so far to augment a system when the providers of this operating system are phasing out what you like? I'm not advocating or hating on anything. Just pointing out some of my own questions in my head.

To first see if this is felt, and second to see why, one wants to do this?

Thanks,

weeve

p.s. - pls to no flames kthx, the whole advocacy issue is a [censored], and I love all ppl/companies that code at all(deep down in my heart that is). Even if I do show, or play sides once in a rare while.
what exactly is a valid password and username?
or do i just make one up?
do i have to use only alphanumerics if i do make one?
Posted By: Ghost Re: How to Shutdown -m //computername ? - 05/22/04 12:20 PM
No arctic warrior, you cant just login with a random user/pass combination and expect it to allow you to login. What would be the point of that? Letting people have access to your computer without even having to verify their identity? Not a good idea. What you need to do is login with an account that you have on the machine. When windows starts up, it does one of two things. Presents you with a window that allows you to click on the user name you wish to login with, and then type the password, or, presents you with a window that asks for you to type in a username and password combination. So ask yourself these questions; What username do i click when i start up? Does it have a password prompt show up when i click it? Or, if i am presented with a prompt for user name and password, what do i type in for these values? After you ask yourself, and answer those questions, do the following. Find the post in this thread about starting a telnet server on your computer. Then, telnet to your computer, type in the user name and password values that you use to login with when logging in locally, and then type "shutdown -s" when displayed with the command prompt.
oh I see. That makes more sence. Sorry for being such a dumb [censored]. Yeah that password thing was the only problem that I had.
What windows boxes actually have telnet enabled (port 23) ????
Posted By: Gremelin Re: How to Shutdown -m //computername ? - 10/26/04 10:25 PM
I believe 2003/2000 have telnet available; you can also download a 3rd party program to function as telnet access on most versions of windows.
Posted By: Ghost Re: How to Shutdown -m //computername ? - 10/27/04 03:48 AM
Yeh. For 2000/2003 you go to the Control Panel, then Services, scroll down to "Telnet", double click it, enable it, start it, and set it to auto start on the machines startup. If you have a previous version of windows, just follow these instructions; http://www.undergroundnews.com/ubb/ultimatebb.php/topic/8/98.html#000003
Im talking about enabled by default, out of the box, like you install and it has telnet enabled.
Posted By: Ghost Re: How to Shutdown -m //computername ? - 10/28/04 07:04 AM
There isn't one enabled by default on any windows platform. For the NT based OS's, like 2000 and 2003, you just have to turn it on via the control panel, like i said in my previous post.
Posted By: MESELF Re: How to Shutdown -m //computername ? - 03/15/05 10:12 AM
nah nah nah...its easy. you gotta log in to your local computer as local Administrator with unrestricted local rights. Then you use
shutdown -s -f -m \\computername -t 0
That should work in xp pro for sure, done it at school plenty. The only reason I can think for that not working is if you were trying to kick off an administrator on the computer you are attempting to shut off. Works fine at school on WinXP Pro.
Posted By: J-k Re: How to Shutdown -m //computername ? - 08/21/05 11:27 AM
I have tried the shutdown command and it doesn't work from the like 4th post on this topic
Posted By: Infinite Re: How to Shutdown -m //computername ? - 08/21/05 11:46 AM
Keep reading then. There's a pile of suggestions in this thread wink
Posted By: J-k Re: How to Shutdown -m //computername ? - 08/24/05 08:36 AM
Ahem i have read and installed that KpyM telnet thingy and i cannot connect to a computer either and im using windows 2000..
Posted By: Schan Re: How to Shutdown -m //computername ? - 08/24/05 12:21 PM
KpyM telnet is giving me problems. I'm not sure exactly how to run this. Sorry to inconvience anyone over this question. I'm currently running a windows XP home edition.
Posted By: mrBob5 Re: How to Shutdown -m //computername ? - 02/06/06 10:41 AM
I think a better way around using telnet is to use another XP command to help with authentication to the remote computer which is the problem here...

runas /netonly /user:<remotecomputer>\<remoteuser> "shutdown -s -m \\<remotecomputer>"

The runas command allows you to specify a different user to execute a program that the current user wouldn't have access to. In this case using the /netonly switch targets the remote computer for the authentication.

After executing the above it will ask you for a password for the remote user and it keeps the password hidden from anyone watching.

Hope this helps.

mrBob
Posted By: HACKSTOCK Re: How to Shutdown -m //computername ? - 06/28/06 06:01 AM
i've been wondering about this for a while too. i had the same problem.

thanks for the tip
Posted By: Molgoroth Re: How to Shutdown -m //computername ? - 02/24/08 12:30 PM
can telnet be used to gain remote access to a computer?
© UGN Security Forum