2 out of 4 rated this helpful - Rate this topic

Reboot method of the Win32_OperatingSystem Class

Applies to: desktop apps only

The RebootWMI class method shuts down the computer system, then restarts it. On computers running Windows 2000 and Windows NT, 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 Reboot();

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 2000 Professional

Minimum supported server

Windows 2000 Server

Namespace

\root\CIMV2

MOF

Cimwin32.mof

DLL

Cimwin32.dll

See also

Operating System Classes
Win32_OperatingSystem

 

 

Send comments about this topic to Microsoft

Build date: 3/9/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
Reboot an IP Address Range with PowerShell
I wrote a post on rebooting an IP range remotely,

http://mikemstech.blogspot.com/2011/09/powershell-script-to-restart-ip-address.html