Power Off - Shuts down the computer and turns off the power (if supported by the computer in question).įorced Power Off (8 + 4) - Shuts down the computer and turns off the power (if supported by the computer in question). Because of this, you will not be able to receive a return value if you are running the script against a remote computer. When the forced reboot approach is used, all services, including WMI, are shut down immediately. Reboot - Shuts down and then restarts the computer.įorced Reboot (2 + 4) - Shuts down and then restarts the computer. When the forced shutdown approach is used, all services, including WMI, are shut down immediately. (All file buffers are flushed to disk, and all running processes are stopped.) Users see the message, It is now safe to turn off your computer. The applications perform any cleanup while processing the message and return True to indicate that they can be terminated.įorced Shutdown (1 + 4) - Shuts down the computer to a point where it is safe to turn off the power. (All file buffers are flushed to disk, and all running processes are stopped.) Users see the message, It is now safe to turn off your computer.ĭuring shutdown the system sends a message to each running application. Shutdown - Shuts down the computer to a point where it is safe to turn off the power. Logging off stops all processes associated with the security context of the process that called the exit function, logs the current user off the system, and displays the logon dialog box.įorced Log Off (0 + 4) - Logs the user off the computer immediately and does not notify applications that the logon session is ending. Log Off - Logs the user off the computer. This results in an indeterminate return value. Using Force in conjunction with Shutdown or Reboot on a remote computer immediately shuts down everything (including WMI, COM, and so on), or reboots the remote computer. To force a command, add the Force flag (4) to the command value. Syntax uint32 Win32Shutdown(īitmapped set of flags to shut the computer down. For more information about using this method, see Calling a Method. This topic uses Managed Object Format (MOF) syntax. These include logoff, shutdown, reboot, and forcing a logoff, shutdown, or reboot. The Win32Shutdown WMI class method provides the full set of shutdown options supported by Win32 operating systems.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |