apeteri commented on issue #3176:
URL: 
https://github.com/apache/maven-surefire/issues/3176#issuecomment-3845909654

   A close equivalent PowerShell call (no header in the output, just the 
timestamp):
   
   ```console
   $ powershell -command 
"[Management.ManagementDateTimeConverter]::ToDmtfDateTime((Get-CimInstance 
Win32_Process -Filter 'ProcessId=24008').CreationDate)"
   20260204083603.603844+060
   
   $ wmic process where "ProcessId=24008" get CreationDate
   CreationDate
   20260204083603.603844+060
   ```
   
   References:
   - [ManagementDateTimeConverter.ToDmtfDateTime(DateTime) 
Method](https://learn.microsoft.com/en-us/dotnet/api/system.management.managementdatetimeconverter.todmtfdatetime?view=net-10.0-pp#system-management-managementdatetimeconverter-todmtfdatetime(system-datetime))
   - [Get instances of a class filtered by using a class name and a filter 
expression](https://learn.microsoft.com/en-us/powershell/module/cimcmdlets/get-ciminstance?view=powershell-7.5#example-4-get-instances-of-a-class-filtered-by-using-a-class-name-and-a-filter-expression)
   - [Getting WMI objects with 
Get-CimInstance](https://learn.microsoft.com/en-us/powershell/scripting/samples/getting-wmi-objects--get-ciminstance-?view=powershell-7.5)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to