Export (0) Print
Expand All
1 out of 3 rated this helpful - Rate this topic

Shutdown method of the Win32_OperatingSystem class

The ShutdownWMI class method unloads programs and DLLs until it is safe to turn off the computer. All file buffers are flushed to the disk, and all of the running processes are stopped. On computer systems running Windows, the calling process must have the SE_SHUTDOWN_NAME privilege.

This topic uses Managed Object Format (MOF) syntax. For more information about using this method, see Calling a Method.

Syntax


uint32 Shutdown();

Parameters

This method has no parameters.

Examples

For script code examples, see WMI Tasks for Scripts and Applications and the TechNet ScriptCenter Script Repository.

For C++ code examples, see WMI C++ Application Examples.

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows Server 2003

Namespace

\root\CIMV2

MOF

CIMWin32.mof

DLL

CIMWin32.dll

See also

Operating System Classes
Win32_OperatingSystem

 

 

Show:
© 2014 Microsoft. All rights reserved.