Remote Reboot

Is there any way of doing a remote reboot without using the WMI interface? If not, I'm having problems getting the WMI to work (using either VB6 on NT4, VB6 or VB.net on Win2K)

This generates en Automation error:

Set OpSysSet = GetObject("winmgmts:{impersonationLevel=impersonate,(RemoteShutdown)}//alexn-pc ").ExecQuery("select * from Win32_OperatingSystem where Primary=true")

Do I need to reference anything first to get it to work?

Thx
Chris
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories