Hi All,
I am trying to automate restart/logoff and then logon again on a Windows Server 2003 computer. I have been using Shutdown(6) to force a restart, however, after login on, I get a message popping up stating "The system has restarted after an unplanned shutdown". I have provided a reason for the shutdown as well. It makes no difference between Shutdown(2, "planned restart") and Shutdown(6, "planned restart").
Anyone know what is happening?
BTW, Shutdown(0, "login off") and Shutdow