I'm trying to use Active Directory Service Interfaces (ADSI) to remotely reboot Windows NT 4.0 workstations. I tried using the IADsComputerOperations interface's Shutdown method, but I can't get it to work. I can't use Windows Management Instrumentation (WMI) because WMI isn't installed on the target machines. How can I reboot these remote workstations without using WMI?
ADSI isn't an option because the ADSI LDAP: and WinNT: providers don't implement the IADsComputerOperations::Shutdown method. In the ADSI software development kit (SDK), you can find out which interfaces, methods, and properties the standard ADSI providers support. See the topic "Provider Support of ADSI Interfaces" at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/netdir/adsi/provider_support_of_adsi_interfaces.asp.
Your best option is to use the Microsoft Windows 2000 Server Resource Kit's shutdown.exe utility to reboot the remote workstations. You can use shutdown.exe interactively through its GUI, from the command line, or in a Windows Script Host (WSH) script. To obtain detailed usage instructions, run the command
from the command line.