Hello,
The WMI class that contains the information about the last Group Policy Object (GPO) application time on a computer is the RSOP_PolicySettingStatus class. This class is available under the root\RSOP\Computer namespace in WMI.
To retrieve the last GPO application time, you can use the LastTimePolicyApplied property of the RSOP_PolicySettingStatus class. Here's an example of how you can query this information using PowerShell:
$namespace = "root\RSOP\Computer"
$className = "RSOP_PolicySettingStatus"
Connect to WMI
$wmi = Get-WmiObject -Namespace $namespace -Class $className
Retrieve the last GPO application time
$lastGPOApplicationTime = $wmi | Select-Object -ExpandProperty LastTimePolicyApplied
Display the last GPO application time
$lastGPOApplicationTime
Please note that this class provides information about the last GPO application time within the Resultant Set of Policy (RSOP) context, which includes both computer and user policies applied to the computer.
I used AI provided by ChatGPT to formulate part of this response. I have verified that the information is accurate before sharing it with you.
--If the reply is helpful, please Upvote and Accept as answer--