Main example
List instances
# All instances of __AbsoluteTimerInstruction, with the main properties
Get-CimInstance -ClassName __AbsoluteTimerInstruction -Namespace 'root' |
Select-Object -Property TimerId, EventDateTime, SkipIfPassedExamples
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, SkipIfPassedThe 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, FlagsProperties
| Name | Type | Access | Description |
|---|---|---|---|
| EventDateTime# | datetime | read/write | Fixed-length string in DMTF format that specifies when the timer fires. CodeWarning. Changes the system: check with -WhatIf first. An elevated console is often required. |
| SkipIfPassed# | boolean | read | 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 |
| TimerId# key | string | read | 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 |
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
- __SystemClass
- __IndicationRelated
- __EventGenerator
- __TimerInstruction
- __AbsoluteTimerInstruction
Known subclasses
No known subclass.
Requirements
- Namespace
- root
- Minimum client
- Windows Vista
- Minimum server
- Windows Server 2008
- DLL
- All
Microsoft source
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.