Reboot a Remote Computer (VB Script/WMI)

Category:
Network/Internet
Type:
Snippets
Difficulty:
Intermediate
Author:
Rowen Bankx

Version Compatibility: Visual Basic Script

More information:
This script reboots a (remote) computer. It uses WMI to accomplish this. Check out http://www.activxperts.com for more samples, components and tools

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: