关闭以任何首选语言在LAN中连接的远程计算机 [英] Shutdown a remote computer connected in LAN in any preferable language

查看:86
本文介绍了关闭以任何首选语言在LAN中连接的远程计算机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想关闭远程Windows计算机(例如,在LAN中连接的Windows计算机).我已经尝试了很多,但是找不到解决方案.有人对关闭远程计算机有想法吗?任何语言都可以.

I want to shut down a remote Windows computer (ex. a Windows computer connected in LAN.) I have tried a lot but I could not find the solution. Does anyone have an idea on how to shut down the remote computer? Any language would work.

推荐答案

假定一个Windows框.

Assuming a windows box.

在VB.NET或c#

Process.Start("shutdown","-s -m \\Machine");

应该做到这一点.

请参阅
http://msdn.microsoft.com/zh-我们/library/system.diagnostics.process.start.aspx
http://www.ss64.com/nt/shutdown.html

See
http://msdn.microsoft.com/en-us/library/system.diagnostics.process.start.aspx
http://www.ss64.com/nt/shutdown.html

注意-shutdown.exe仅在Windows 2003之前的资源工具包中可用

Note - shutdown.exe was only available in Resource Kits prior to Windows 2003

这篇关于关闭以任何首选语言在LAN中连接的远程计算机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆