Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

About remote restart by command when window cannot connect remotely

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Previously on: in a use process, found that a Windows system can not be connected remotely, but can ping access, remote access after the black screen state, so intend to use remote command to restart.

How to use it:

Reboot remotely using the command line and enter in the cmd command line state:

Shutdown-r-m\ 1.1.1.1-t 0-f

-r restart,-m remote device address,-f forced restart

During execution, you may be prompted to deny access, indicating that you do not have permissions, and enter the following command:

With a valid user name and password, execute the shutdown command again to restart.

Net use\ 1.1.1.1\ ipc$ "password" / user: "username"

Shutdown-r-m\ 1.1.1.1-t 0-f

Prompt execution was successful.

-dividing line-

The following add shutdown command to use parameters, which can be viewed with help shutdown:

Usage: shutdown [/ I | / l | / s | / r | / g | / a | / p | / h | / e] [/ f]

[/ m\ computer] [/ t xxx] [/ d [p | u:] xx:yy [/ c "comment"]]

There are no parameters to display help. This has to do with typing /? It's the same. /? Show help. This is the same as not typing any options. / I display graphical user interface (GUI). This must be the first option. / l log out. This cannot be used with the / m or / d options. / s turn off the computer. / r shut down and restart the computer. / g shut down and restart the computer. After the system restarts, restart all registered applications. / an abort system shutdown. This can only be used during the timeout period. / p shut down the local computer with no timeout or warning. Can be used with the / d and / f options. / h hibernate the local computer. Can be used with the / f option. / e record the reason why the computer shuts down unexpectedly. / m\\ computer specifies the target computer. The timeout before / t xxx setting is turned off is xxx seconds. The valid range is 0-315360000 (10 years) and the default value is 30. If the timeout is greater than 0, the / f parameter is implied. / c comment on the reason why "comment" restarts or shuts down. A maximum of 512 characters are allowed. / f forces the running application to close without warning the user from the front desk. When you specify a value greater than 0 for the / t parameter, the / f parameter is implied. / d [p | u:] xx:yy provides reasons for restarting or shutting down. P indicates that the restart or shutdown is planned. U indicates that the reason is defined by the user. If neither p nor u is specified, it is an unplanned restart or shutdown. Xx is the primary cause number (a positive integer less than 256). Yy is the secondary reason number (a positive integer less than 65536).

Reasons on this computer:

(e = expected U = unexpected P = planned, C = custom)

Category primary secondary title

U00 other (unplanned)

E 0 0 other (unplanned)

E P 0 0 others (planned)

U 0 5 other failure: the system is not responding

E 1 1 hardware: maintenance (unplanned)

E P 1 1 hardware: maintenance (planned)

E 1 2 hardware: installation (unplanned)

E P 1 2 hardware: installation (planned)

E 2 2 operating system: recovery (planned)

E P 2 2 operating system: recovery (planned)

P 2 3 operating system: upgrade (planned)

E 2 4 operating system: reconfiguration (unplanned)

E P 2 4 operating system: reconfiguration (planned)

P 216 operating system: Service Pack (planned)

2 17 operating system: hotfix (unplanned)

P 2 17 operating system: hotfix (planned)

2 18 operating system: security patching (unplanned)

P 218 operating system: security patching (planned)

E 4 1 applications: maintenance (unplanned)

E P 4 1 application: maintenance (planned)

E P 4 2 applications: installation (planned)

E 4 5 application: no response

E 4 6 applications: unstable

U5 15 system failure: stop error

U519 security issues

E 519 Security issues

E P 519 Security issues

E 5 20 Network connection lost (unplanned)

U611 power failure: the wire is unplugged

U6 12 power failure: environment

P 7 0 old API shutdown

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report