博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
如何使用命令提示符关闭Windows 10 PC
阅读量:2514 次
发布时间:2019-05-11

本文共 5285 字,大约阅读时间需要 17 分钟。

Microsoft Windows 10 Logo

Using the Command Prompt to turn off your Windows 10 PC provides more options and flexibility than merely using the shutdown option from the Start menu or pressing the power button on your PC. Here’s how it’s done.

使用命令提示符关闭Windows 10 PC可以提供更多的选项和灵活性,而不仅仅是使用“开始”菜单中的关闭选项或按PC上的电源按钮即可。 这是完成的过程。

使用命令提示符关闭PC (Shut Down Your PC Using the Command Prompt)

Start by pressing the Windows + R keys to open the Run window. From there, type “cmd” in the box and then select the “OK” button.

首先按Windows + R键打开“运行”窗口。 从那里,在框中输入“ cmd”,然后选择“确定”按钮。

Run window

This will open the Command Prompt. Here, type shutdown /s .

这将打开命令提示符。 在这里,输入shutdown /s

Type the shutdown command

Once you press Enter, a message will appear letting you know that Windows will shut down in less than a minute. You can select the “Close” button if you like, but this will not affect the shutdown process.

按下Enter键后,将出现一条消息,通知您Windows将在不到一分钟的时间内关闭。 您可以根据需要选择“关闭”按钮,但这不会影响关机过程。

Sign out message

That’s all there is to it. Within the minute, your PC will shut down. There’s also a way of restarting your PC using the Command Prompt if that’s what you prefer.

这里的所有都是它的。 在几分钟之内,您的电脑将关闭。 如果您愿意的话,还有一种使用命令提示符重启PC的方法。

使用命令提示符重新启动PC (Restart Your PC Using the Command Prompt)

This process for restarting your PC is nearly identical to shutting down your PC, except you’ll use a slightly different command in the Command Prompt.

重新启动PC的过程与关闭PC几乎相同,除了在命令提示符中使用略有不同的命令之外。

Open the Run window by pressing the Windows Key +R keys, type “cmd” in the box, and then select the “OK” button to open the Command Prompt.

通过按Windows键+ R键打开“运行”窗口,在框中键入“ cmd”,然后选择“确定”按钮以打开命令提示符。

Once in the Command Prompt, type shutdown /r .

在命令提示符中,键入shutdown /r

Restart command

Press the Enter key to proceed. Your PC will now begin the restart process within the next minute.

按Enter键继续。 您的PC现在将在下一分钟内开始重新启动过程。

These are just two of the many different options for shutting down your Windows PC from the Command Prompt. To get a full list of shut down options available to you, type shutdown /? in the Command Prompt and then press Enter. A complete list of switches and respective descriptions will be displayed.

这些只是从命令提示符关闭Windows PC的许多不同选项中的两个。 要获取可用的关闭选项的完整列表,请键入shutdown /? 在命令提示符下,然后按Enter。 将显示开关的完整列表和相应的说明。

list of shutdown options

For the convenience of our readers, we’ve provided the complete list of the shutdown commands and descriptions provided by Microsoft below.

为了方便读者,我们在下面提供了Microsoft提供的关机命令和说明的完整列表。

命令提示符关闭开关和参数列表 (List of Command Prompt Shutdown Switches and Parameters)

Switch and Parameter Description
/? Display help.
/i Display the graphical user interface (GUI).
/l Log off. This cannot be used with /m or /d options.
/s Shutdown the computer.
/sg

Shutdown the computer. On the next boot, if Automatic Restart Sign-On is enabled, automatically sign in and lock the last interactive user.

After sign in, restart any registered applications.

/r Full shutdown and restart the computer.
/g

Full shutdown and restart the computer. After the system is rebooted, if Automatic Restart Sign-On is enabled, automatically sign in and lock the last interactive user.

After sign in, restart any registered applications.

/a

Abort a system shutdown.

This can only be used during the time-out period.

Combine with /fw to clear any pending boots to the firmware.

/p

Turn off the local computer with no time-out or warning.

It can be used with /d and /f options.

/h

Hibernate the local computer.

It can be used with the /f option.

/hybrid

Performs a shutdown of the computer and prepares it for a .

Must be used with /s option.

/fw Combine with a shutdown option to cause the next boot to go to the firmware user interface.
/e Document the reason for an unexpected shutdown of a computer.
/o

Go to the advanced boot options menu and restart the computer.

Must be used with /r option.

/m \\computer Specify the target computer
/t xxx

Set the time-out period before shutdown to xxx seconds.

The valid range is 0-315360000 (10 years), with a default of 30. If the time-out period is greater than 0, the /f parameter is implied.

/c “comment”

Comment on the reason for the restart or shutdown.

A maximum of 512 characters allowed.

/f

Force running applications to close without forewarning users.

The /f parameter is implied when a value greater than 0 is specified for the /t parameter.

/d [p|u]xx:yy

Provide the reason for the restart or shutdown.

p indicates that the restart or shutdown is planned.

u indicates that the reason is user-defined.

xx is the major reason number (positive integer less than 256).

yy is the minor reason number (positive integer less than 65536).

开关和参数 描述
/? 显示帮助。
/一世 显示图形用户界面(GUI)。
/升 注销。 不能与/ m或/ d选项一起使用。
/秒 关闭计算机。
/ sg

关闭计算机。 在下次启动时,如果启用了“自动重新启动登录”,则自动登录并锁定最后一个交互式用户。

登录后,重新启动所有已注册的应用程序。

/ r 完全关闭并重新启动计算机。
/G

完全关闭并重新启动计算机。 重新引导系统后,如果启用了自动重新启动登录,则自动登录并锁定最后一个交互式用户。

登录后,重新启动所有已注册的应用程序。

/一种

中止系统关机。

这只能在超时期间使用。

与/ fw结合使用以清除所有挂起的固件启动。

/ p

关闭本地计算机,没有超时或警告。

它可以与/ d和/ f选项一起使用。

/H

Hibernate本地计算机。

可以与/ f选项一起使用。

/混合

关闭计算机并为做准备。

必须与/ s选项一起使用。

/ fw 与关闭选项结合使用可使下次启动进入固件用户界面。
/ e 记录意外关闭计算机的原因。
/ o

转到高级启动选项菜单,然后重新启动计算机。

必须与/ r选项一起使用。

/ m \\计算机 指定目标计算机
/ t xxx

将关机前的超时时间设置为xxx秒。

有效范围是0-315360000(10年),默认值为30。如果超时时间大于0,则隐含/ f参数。

/ c“评论”

评论重新启动或关闭的原因。

最多允许512个字符。

/F

强制关闭正在运行的应用程序而不会警告用户。

如果为/ t参数指定了大于0的值,则意味着/ f参数。

/ d [p | u] xx:yy

提供重新启动或关闭的原因。

p表示已计划重新启动或关闭。

u表示原因是用户定义的。

xx是主要原因数(小于256的正整数)。

yy是次要原因编号(小于65536的正整数)。

翻译自:

转载地址:http://pgtwd.baihongyu.com/

你可能感兴趣的文章
grid - 网格项目跨行或跨列
查看>>
2019年2月
查看>>
STL库的应用
查看>>
spark算子
查看>>
(转)Linux服务器SNMP常用OID
查看>>
USB各种模式 解释
查看>>
数据访问-----ADO.NET 小结和练习
查看>>
Linux lsof详解
查看>>
子组件给父组件传数据
查看>>
unix/linux下的共享内存、信号量、队列信息管理
查看>>
Hilbert先生旅馆的故事
查看>>
采访吴岳师兄有感 by 王宇飞
查看>>
LVS简略介绍
查看>>
hdu 1021 Fibonacci Again
查看>>
JVM架构_XmnXmsXmxXss有什么区别:转
查看>>
PHPExcel 使用心得
查看>>
洛谷 P3374 【模板】树状数组 1(单点加,区间和)
查看>>
verilog 代码编写小记
查看>>
PyQT的安装和配置
查看>>
从 docker 到 runC
查看>>