无需 (!) RPC 服务的远程关闭
远程关闭计算机有多种方法。
以下是我所知道的三个:
- 通过远程 WMI 连接调用 Win32_OperatingSystem 类的 Shutdown 方法
- 使用 Microsoft Windows shutdown.exe
- 让您的(无论什么).exe 将自身复制到目标计算机上的系统文件夹,将自身注册为服务,然后使用参数远程启动它,以便它启动本地关闭。
第三点是 sysinternals 这样做的原因,例如,但是,它要求您有文件& 打印机共享处于活动状态,以便能够将自身复制到目标并调用服务。
Number 2 几乎在任何地方都可以使用...但也需要有文件和文件。 打印机共享已启用。 因为:这会激活远程调用关闭所需的 RPC 服务。
据我所知,即使是Number 1,WMI 解决方案,不仅需要在目标上安装 WMI,还需要启用 RPC 服务。
我的问题是: 我需要一个解决方案,允许我在未启用 RPC 的情况下关闭远程计算机。
有办法吗?
注意:业务解决方案上下文中的一种方法;-)
There are different ways of shutting down a computer remotely.
Here are three I know of:
- Invoking the Shutdown method of the Win32_OperatingSystem class through a remote WMI connection
- Using the Microsoft Windows shutdown.exe
- Letting your (whatever).exe copy itself to the systemfolder on the target machine, register itself as a service and start it remotely with parameters so that it initiates a local shutdown.
Number 3 is why sysinternals does, e.g. However, it requires that you have file & printer sharing active so that it is able to copy itself to the target and invoke the service.
Number 2 works almost everywhere... but also needs to have file & printer sharing being enabled. Because: This activates the RPC service which is needed for remotely invoking the shutdown.
As far as I can tell, even Number 1, the WMI solution, not only needs WMI installed on the target, but also the RPC service enabled.
My problem is:
I need a solution that allows me to shutdown a remote computer without RPC being enabled on it.
Is there a way?
Note: A way within a context of a business solution ;-)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我相信您可以使用 IPMI 来完成此类任务。 但它需要硬件支持。 几年前,我们在一个解决方案中使用它通过串行端口进行无人值守管理。 我们在对软关机的硬件支持方面遇到了一些问题,因为它需要与操作系统进行一些集成。 据我所知,您可以使用 IPMI 实用程序发送的网络数据包来模拟按下电源按钮时的硬件反应。 HTH。
I believe that you can use IPMI for such tasks. It requires hardware support though. We used it for lights-out management over a serial port in a solution a few years ago. We had some issues with the hardware support for soft shutdown since it requires some integration with the OS. From what I remember, you can mimic the hardware reaction to pressing the power button using a network packet sent by an IPMI utility. HTH.