__AbsoluteTimerInstruction

Absolute Timer Instruction
rootkey : TimerId

Causes an event to be generated on a specific date at a specific time.

On this page

Main example

List instances

# All instances of __AbsoluteTimerInstruction, with the main properties
Get-CimInstance -ClassName __AbsoluteTimerInstruction -Namespace 'root' |
    Select-Object -Property TimerId, EventDateTime, SkipIfPassed

Examples

Filter with WQL

# WQL filter evaluated by the provider: only the instances where SkipIfPassed is TRUE
$cimParameters = @{
    ClassName = '__AbsoluteTimerInstruction'
    Namespace = 'root'
    Filter    = 'SkipIfPassed = TRUE'
}
Get-CimInstance @cimParameters |
    Select-Object -Property TimerId, EventDateTime, SkipIfPassed

The filter is evaluated by the WMI provider: less data is transferred than with Where-Object.

Query a remote computer (CIM session)

review before running
# Name of the remote computer
$computerName = 'SERVER01'
# The CIM session (WSMan by default) can be reused for several queries
$cimSession = New-CimSession -ComputerName $computerName
try {
    $cimParameters = @{
        CimSession = $cimSession
        ClassName  = '__AbsoluteTimerInstruction'
        Namespace  = 'root'
    }
    Get-CimInstance @cimParameters |
        Select-Object -Property TimerId, EventDateTime, SkipIfPassed
} finally {
    Remove-CimSession -CimSession $cimSession
}

WSMan (WinRM) is used by default. For a host without WinRM, create the session with -SessionOption (New-CimSessionOption -Protocol Dcom). Add -Credential to use another account.

Show the class structure

# Class structure: properties, types and flags (Key, ReadOnly…)
$cimClass = Get-CimClass -ClassName __AbsoluteTimerInstruction -Namespace 'root'
$cimClass.CimClassProperties |
    Select-Object -Property Name, CimType, Flags

Properties

3 of 3 properties
NameTypeAccessDescription
EventDateTimedatetimeread/write

Fixed-length string in DMTF format that specifies when the timer fires.

Code
# Value of EventDateTime for each instance
# CIM cmdlets already return a DateTime object: no conversion is needed
$cimParameters = @{
    ClassName = '__AbsoluteTimerInstruction'
    Namespace = 'root'
    Property  = @('TimerId', 'EventDateTime')
}
Get-CimInstance @cimParameters |
    Select-Object -Property TimerId, EventDateTime

Warning. Changes the system: check with -WhatIf first. An elevated console is often required.

# Warning: changes EventDateTime on the instance. -WhatIf shows the operation without running it.
# Target instance
$instanceParameters = @{
    ClassName = '__AbsoluteTimerInstruction'
    Namespace = 'root'
    Filter    = "TimerId = 'Example'"
}
$instance = Get-CimInstance @instanceParameters
$setParameters = @{
    InputObject = $instance
    Property    = @{ EventDateTime = (Get-Date) }
    WhatIf      = $true  # Remove this line to actually apply the change
}
Set-CimInstance @setParameters
SkipIfPassedbooleanread

If TRUE, the timer event occurs if WMI cannot generate it at the correct time interval, or the consumer requesting to receive the event is unavailable. If TRUE, the event will not occur. The default is FALSE. When WMI or the consumer becomes available, a notification event is generated and received. This property is inherited from __TimerInstruction.

FALSE

When WMI or the consumer becomes available again, a notification event will be generated and received.

TRUE

The timer event does not occur if WMI is unavailable to generate it at the appropriate time interval, or the consumer requesting to receive the event is unavailable.

Code
# Value of SkipIfPassed for each instance
$cimParameters = @{
    ClassName = '__AbsoluteTimerInstruction'
    Namespace = 'root'
    Property  = @('TimerId', 'SkipIfPassed')
}
Get-CimInstance @cimParameters |
    Select-Object -Property TimerId, SkipIfPassed
TimerId keystringread

Unique user-assigned string that identifies a specific timer event. To avoid naming conflicts with other timer identifiers, the string form of a distributed computer environment style GUID can be used. This property is inherited from __TimerInstruction.

Code
# Value of TimerId for each instance
$cimParameters = @{
    ClassName = '__AbsoluteTimerInstruction'
    Namespace = 'root'
    Property  = 'TimerId'
}
Get-CimInstance @cimParameters |
    Select-Object -Property TimerId

Remarks

The __AbsoluteTimerInstruction class is derived from __TimerInstruction.

WMI generates the absolute timer event by creating an instance of the __TimerEvent class.

Inheritance

Superclass chain

  1. __SystemClass
  2. __IndicationRelated
  3. __EventGenerator
  4. __TimerInstruction
  5. __AbsoluteTimerInstruction

Known subclasses

No known subclass.

Requirements

Namespace
root
Minimum client
Windows Vista
Minimum server
Windows Server 2008
DLL
All

Microsoft source

Source: Microsoft Learn

Descriptions, properties and methods come from the Microsoft documentation (MicrosoftDocs/win32 repository), published under the CC BY 4.0 licence. Formatting and translations are specific to this site; the PowerShell examples are written for it.