【问题标题】:Is there a way to stop or interrupt the windows shutdown process有没有办法停止或中断 Windows 关机过程
【发布时间】:2018-04-26 12:18:08
【问题描述】:

当我在powershell中调用Stop-computer或(Get-WmiObject - Class Win32_OperatingSystem).Win32Shutdown(1)时,有没有办法在电源关闭之前停止或中断进程?这意味着关闭过程已经开始,但尚未完成。

【问题讨论】:

  • 试试shutdown -a
  • 我的意思是在关机程序开始之后
  • 当然在关机程序开始之后,否则你不需要停止它:-)

标签: windows powershell shutdown


【解决方案1】:

如果您执行了延迟关闭 (shutdown /t 60),您可以使用 shutdown /a 取消挂起的事件。如果机器正在主动关闭(您面前有关闭屏幕,屏幕上有正在进行的动画),您所能做的就是希望打开的程序不会关闭,以便您有机会取消。如果这没有发生,你就要重新开始城镇了。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-12-25
    • 1970-01-01
    • 2023-03-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-12-31
    • 1970-01-01
    相关资源
    最近更新 更多