中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-26 19:15
47,812 topics / 349,912 posts / today 2 new / 48,264 members
其它操作系统综合讨论区 » How to shut down the computer from DOS
Printable Version  17,739 / 27
Floor1 chineselgs Posted 2006-05-11 16:28
高级用户 Posts 266 Credits 613 From 河南省
Comrades, hello everyone
I'm a new user, know little
There's one unclear thing so far
Still ask everyone to give advice





Hehe, happy for a while, wrote a limerick~~~ Please don't spit on me~~~ You still spit, isn't it about you, and you, the moderator, how do you act as a moderator, spitting带头~~~ Where's the webmaster, I want to complain!~~~~


Okay, get down to business, if I want to use DOS to implement shutdown, restart and other operations in the WINDOWS environment, what command should I use, still ask for advice!

I'm using WINXP2, the system comes with DOS!!


[ Last edited by chineselgs on 2006-5-11 at 16:30 ]
Floor2 asbai Posted 2006-05-11 16:36
高级用户 Posts 252 Credits 653
In XP, there is the shutdown command. /s is for shutting down, /r is for restarting, and you can use the /? parameter to see other options.
Floor3 chineselgs Posted 2006-05-11 16:48
高级用户 Posts 266 Credits 613 From 河南省
No, I tried. That command can only be used by the superuser. I don't have the permission to use that command with my current user~
Floor4 electronixtar Posted 2006-05-11 23:02
铂金会员 Posts 2,672 Credits 7,493
Add yourself to the administrators group with "localgrouop administrators xxx /add" or run "runas /user:administrator "shutdown -s -t 0"

P.S. It seems that the parameters for shutdown use "-" instead of "/"
Floor5 coarok Posted 2006-05-12 08:23
新手上路 Posts 2 Credits 4
Floor6 chineselgs Posted 2006-05-12 16:10
高级用户 Posts 266 Credits 613 From 河南省
Are the fifth floor and the second floor from the same place??

Even if the second floor is correct, it just doesn't work~~

The fourth floor looks good, but I don't understand it. Can you explain it more clearly???
Floor7 jawbin Posted 2006-05-13 10:40
高级用户 Posts 444 Credits 994
Floor8 bagpipe Posted 2006-05-13 17:21
银牌会员 Posts 425 Credits 1,144 From 北京
The LZ is talking about the DOS system. Personally, I think it's pure DOS. Well, isn't it just shutting down? It's too easy. LZ, listen up. Raise one of your hands (left or right doesn't matter), then free up a finger (preferably a finger with a bit of strength) and then press hard on the button you usually press when you start up (some machines need to be pressed for a certain period of time, depending on the situation). Then you will see the screen turn black. Okay, at this point, I can say that you have successfully shut down from the DOS system. Congratulations, congratulations................
Floor9 kingljp Posted 2006-05-16 00:55
初级用户 Posts 29 Credits 80
I support the person above!!!
Floor10 Climbing Posted 2006-05-18 03:03
铂金会员 Posts 2,753 Credits 6,962 From 河北保定
The LZ tries this command:
http://nufans.net/clone/systools/shutdown.exe

The usage is similar to XP's shutdown. To shut down:
shutdown -u -f -t 0

Note that this is not the one built into XP. This one should be able to bypass the ordinary user's permissions because when it runs, it elevates the process's permissions to system.

shutdown 1.0 for Windows XP - September 2nd, 2001
Copyright(C) 2000-2001 Andrej Budja, www.budja.com/shutdown
This program is FREEWARE.

Usage: shutdown

-l: Log Off.
-u: Shutdown (Turn Off).
-r: Restart.
-h: Hibernate.
-s: Stand By (Sleep).

-f: Force the action.

-c: Cancel a running shutdown.
-t sec: Delay for number of seconds.
Examples:
shutdown -l -f: Logs off current user and forces quick shutdown of applications
shutdown -s -t 30: Initates standby in 30 seconds
shutdown -c: Cancels all initiated actions
Floor11 DOSforever Posted 2006-05-18 09:37
金牌会员 Posts 2,239 Credits 4,639
The best answer is bagpipe, which should be given points and praise. Hehe
Floor12 jawbin Posted 2006-05-18 10:23
高级用户 Posts 444 Credits 994
Spit blood to support the person upstairs.. haha
Floor13 electronixtar Posted 2006-05-18 10:25
铂金会员 Posts 2,672 Credits 7,493
Yun~~~~ The person on the 10th floor is too boasting. If you can escalate privileges to SYSTEM, you can also use the built-in shutdown, right? Also, if you escalate privileges, then this MS vulnerability is too big. If a normal user can shut down the computer with SYSTEM privileges, then what's the security of Windows? Through testing, without changing privileges, you can shut down.

If you want to use the system's built-in shutdown, log in as an administrator. In gpedi.msc, add your own account to the shutdown permission. Specifically, there is a registry value I forgot
Floor14 JonePeng Posted 2006-05-18 10:59
金牌会员 Posts 1,883 Credits 4,562 From 广东广州
The shutdown introduced by Climbing is pretty good! It can replace the one for XP.
Floor15 Climbing Posted 2006-05-18 14:05
铂金会员 Posts 2,753 Credits 6,962 From 河北保定
Originally posted by electronixtar at 2006-5-18 10:25:
Oh my god~~~ The person on floor 10 is too boastful. If you can escalate privileges to SYSTEM, then using the built-in shutdown might not work either. Also, if you can escalate privileges, then this MS vulnerability is too big. A normal user can act as a SYSTEM...


How do you explain how it shuts down the computer?

As far as I know, the program I provided will elevate its own privileges by itself. Whether it is SYSTEM privileges or not, I haven't carefully verified it, and this needs to be discussed. Moreover, I have also written programs to enumerate and kill processes by myself, which require using API functions to elevate process privileges.

And there is a common tool used by hackers called psu, whose function is to enter SYSTEM privileges as a normal user. I'm afraid you are a bit uninformed.
1 2  Next
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023