次の方法で共有


MSFT_SMJob class

Represents an asynchronous job.

The following syntax is simplified from Managed Object Format (MOF) code and includes all of the inherited properties.

Syntax

[dynamic, provider("WMIStorage"), AMENDMENT]
class MSFT_SMJob
{
  String   ObjectId;
  string   Description;
  datetime ElapsedTime;
  uint16   ErrorCode;
  string   ErrorDescription;
  uint16   JobState;
  string   JobStatus;
  uint16   LocalOrUtcTime;
  uint16   OperationalStatus[];
  uint16   PercentComplete;
  datetime StartTime;
  string   StatusDescriptions[];
  datetime TimeBeforeRemoval;
  datetime TimeOfLastStateChange;
  datetime TimeSubmitted;
};

Members

The MSFT_SMJob class has these types of members:

Properties

The MSFT_SMJob class has these properties.

Description

Data type: string

Access type: Read-only

A textual description of the object.

ElapsedTime

Data type: datetime

Access type: Read-only

The duration since the job started or the total execution time if the job is complete.

ErrorCode

Data type: uint16

Access type: Read-only

Qualifiers: ModelCorrespondence ("CIM_Job.ErrorDescription")

A vendor-specific error code. Zero if the job completed without error.

ErrorDescription

Data type: string

Access type: Read-only

The vendor error description, if any.

JobState

Data type: uint16

Access type: Read-only

The state of the job.

The possible values are.

New (2)

Starting (3)

Running (4)

Suspended (5)

Shutting Down (6)

Completed (7)

Terminated (8)

Killed (9)

Exception (10)

Service (11)

Query Pending (12)

DMTF Reserved

13 32767

Vendor Reserved

32768 65535

JobStatus

Data type: string

Access type: Read-only

A description of the status of the job.

LocalOrUtcTime

Data type: uint16

Access type: Read-only

Indicates whether the times in other properties represent local or UTC time.

The possible values are.

Local Time (1)

UTC Time (2)

ObjectId

Data type: String

Access type: Read-only

Qualifiers: Key

The ID of this class instance. This ID must be unique within the scope of the Windows Storage Management server that hosts the provider object.

OperationalStatus

Data type: uint16 array

Access type: Read-only

Qualifiers: ArrayType ("Indexed")

The current statuses of the element.

The possible values are.

Unknown (0)

Other (1)

OK (2)

Degraded (3)

Stressed (4)

Predictive Failure (5)

Error (6)

Non-Recoverable Error (7)

Starting (8)

Stopping (9)

Stopped (10)

In Service (11)

No Contact (12)

Lost Communication (13)

Aborted (14)

Dormant (15)

Supporting Entity in Error (16)

Completed (17)

Power Mode (18)

DMTF Reserved

19 32767

Vendor Reserved

32768 65535

PercentComplete

Data type: uint16

Access type: Read-only

Qualifiers: Units ("Percent")

The percentage of the job that is completed.

StartTime

Data type: datetime

Access type: Read-only

A datetime value that indicates when the job started.

StatusDescriptions

Data type: string array

Access type: Read-only

Qualifiers: ArrayType ("Indexed")

Descriptions of the values in the corresponding elements of the OperationalStatus array.

TimeBeforeRemoval

Data type: datetime

Access type: Read-only

A datetime value that indicates how long the job is retained after it is finished executing.

TimeOfLastStateChange

Data type: datetime

Access type: Read-only

A datetime value that indicates when the state of the Job last changed. Zero if the state has not changed.

TimeSubmitted

Data type: datetime

Access type: Read-only

A datetime value that indicates when the job is submitted to execute.

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2012
Namespace
Root\Microsoft\Windows\Storage\SM
MOF
MsftStrgMan.mof
DLL
StorageService.dll

See also

Windows Storage Management WMI Provider