Reference for Win32_ScheduledJob
(Diese Seite wurde noch nicht auf das neue Layout umgestellt!)

Select by Class Type Search by Keyword
Show all classes

Category (Kategorie):

Desktop and Environment

Description (Beschreibung):

The Win32_ScheduledJob WMI class represents a job scheduled using the Windows NT schedule service. This class is only instrumented on Windows NT 4.0 and later. Each job scheduled against the schedule service is stored persistently (the scheduler will know to start the job even after a reboot) and is executed at the specified time and day of the week and/or month. If the computer is not active or if the scheduled service is not running at the specified job time, the schedule service will run the specified job on the next day at the specified time. Scheduled jobs are scheduled with respect to Universal Coordinated Time (UTC) (that is, with bias offset from GMT). This means that a job can be specified using any time zone specification. The Win32_ScheduledJob class returns the local time with UTC offset when enumerating an object and converts to local time when creating new jobs. For example, a job specified to run on a computer in Boston at 10:30 P.M. Monday PST time will be scheduled to run locally at 1:30 A.M. Tuesday EST. It should be noted that a client must take into account whether daylight savings time is in operation on the local computer and, if so, subtract a bias of 60 minutes from the UTC offset.

Availability (Verfügbarkeit):

WMI Class NameWindows Server 2003Windows XP ProfessionalWindows 2000Windows NT 4.0Windows 98
Win32_ScheduledJobYesYesYesYesYes

Properties (Attribute):

ItemServer 2003XP ProWindows 2000NT 4.0Windows 98
CaptionYesYesYesYesYes
CommandYesYesYesYesYes
DaysOfMonthYesYesYesYesYes
DaysOfWeekYesYesYesYesYes
DescriptionYesYesYesYesYes
ElapsedTimeYesYesYesYesYes
InstallDateYesYesYesYesYes
InteractWithDesktopYesYesYesYesYes
JobIdYesYesYesYesYes
JobStatusYesYesYesYesYes
NameYesYesYesYesYes
NotifyYesYesYesYesYes
OwnerYesYesYesYesYes
PriorityYesYesYesYesYes
RunRepeatedlyYesYesYesYesYes
StartTimeYesYesYesYesYes
StatusYesYesYesYesYes
TimeSubmittedYesYesYesYesYes
UntilTimeYesYesYesYesYes

Methods (Methoden):

ItemServer 2003XP ProWindows 2000NT 4.0Windows 98
CreateYesYesYesYesYes
DeleteYesYesYesYesYes

Sample Code (Beispiel):

strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_ScheduledJobr")
For Each objItem in colItems
    Wscript.Echo "Caption: " & objItem.Caption
Next

Links:

Link zur Original-Microsoft-Dokumentation