Batch file 使用批处理文件快速关闭远程服务器

Batch file 使用批处理文件快速关闭远程服务器,batch-file,command,remote-access,remote-server,Batch File,Command,Remote Access,Remote Server,我知道如何使用关机命令(shutdown-r-f-f0)关闭计算机,但我正在尝试创建一个批处理文件,以便在紧急情况下远程关闭计算机/服务器 谢谢。 使用“/m”参数关闭Amir shutdown.exe/m\\hostname-s-t 0 或 wmic.exe操作系统,其中Primary=TRUE调用Win32Shutdown 1 或Sysinternals中的psshutdown.exe 或psexec.exe\\hostname-u[user]-p[password]-accepteula

我知道如何使用关机命令(shutdown-r-f-f0)关闭计算机,但我正在尝试创建一个批处理文件,以便在紧急情况下远程关闭计算机/服务器

谢谢。 使用“/m”参数关闭Amir shutdown.exe/m\\hostname-s-t 0

或 wmic.exe操作系统,其中Primary=TRUE调用Win32Shutdown 1

或Sysinternals中的psshutdown.exe

或psexec.exe\\hostname-u[user]-p[password]-accepteula shutdown.exe-s-t 0

使用“/m”参数关机 shutdown.exe/m\\hostname-s-t 0

或 wmic.exe操作系统,其中Primary=TRUE调用Win32Shutdown 1

或Sysinternals中的psshutdown.exe

或psexec.exe\\hostname-u[user]-p[password]-accepteula shutdown.exe-s-t 0


您通常可以通过阅读您试图使用的命令的帮助文件来帮助自己。类型shutdown/?在cmd提示符下。您通常可以通过阅读您试图使用的命令的帮助文件来帮助自己。类型shutdown/?在cmd提示符下。