Howdy, Stranger!

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

Categories

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

Comments

  • Andre YoungAndre Young USAMember Posts: 0

    ____ || http://forcoder.org || free ebooks and video tutorials about // C++, Objective-C, Visual Basic, Assembly, Delphi, Java, C, R, Scratch, PHP, Python, Ruby, MATLAB, JavaScript, Perl, Go, PL/SQL, Swift, C#, Visual Basic .NET Hack, F#, Lua, Transact-SQL, Awk, Prolog, Ada, Apex, ML, Julia, Erlang, Fortran, ABAP, COBOL, Crystal, Scala, Bash, Dart, Lisp, Rust, SAS, Scheme, VBScript, FoxPro, Kotlin, Clojure, Logo, LabVIEW, Alice, D // ______________

Sign In or Register to comment.