Good day
A little background to tell that I have no malicious intents with my question: I am about automatizing my home and make good progress: several dozens of devices can be switched on and off programmatically from any PC in the household using my VB6 application (and there are other features, such as locking a device to prevent it from being turned off).
Now the next step is to implement a self-developed script language to automatize sequential tasks. The language defines programs in task folders. For example does one such program, called "Good Night", have the task to shut down all "non-vital" machines for the night.
But no matter how I try, I seem not to be able to force a PC in my LAN to shut down properly (i.e., to shut it down, or better yet put it into hibernation). Of course I can take away the PC's power, but well...
Shutdown /s /m \\ComputerName seems like the natural choice, but allegedly it does not work for a remote computer after Windows XP. It certainly does not work in my Windows 8.1 environment: it terminates with "Access denied (5)". Running cmd as administrator does not give me the desired access.
How can I achieve my task via the shell? (Or VB6, of course, but when possible via the shell, I should manage in VB6 as well.)
Thanks in advance!