Export (0) Print
Expand All

SetDateTime method of the Win32_OperatingSystem class

The SetDateTimeWMI class method sets the current system time on the computer.

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

Syntax


uint32 SetDateTime(
  datetime LocalDatetime
);

Parameters

LocalDatetime

Value of the current time.

Remarks

The calling process must have the SE_SYSTEMTIME_NAME privilege.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2003

Namespace

\root\CIMV2

MOF

CIMWin32.mof

DLL

CIMWin32.dll

See also

Operating System Classes
Win32_OperatingSystem
WMI Tasks: Desktop Management

 

 

Show:
© 2014 Microsoft