|
The problem only exists on Windows XP computers. I have tested this on 98 and 2000, both no problems. I have tested on two XP computers thus far, one on a test domain, one on the real deal. Both are no dice with error 21 - device no ready. I have tried starting every service that will start on the computer, still no dice. Really, this makes little sense as 2000 and XP are so similar with this aspect of the OS. To keep things on point, I am trying to write a script that will run as a scheduled task on workstations as the Administrator. The script will determine if anybody is logged on and if no, the script will power off the computer. I am not having any problems using WMI to see if a user is logged on. The problem is the shutdown command returning error 21 - device not ready.
|