current time for CMPIVOT?

Rafael Aguilar 496 Reputation points
2021-01-04T20:09:02.5+00:00

Good Afternoon Team.

Wishing you a happy new year.

Can I by cmpivot have the way to know the current time of a device?

I'm looking but can't find the specific query.

Thank you for your help.

Microsoft Configuration Manager
0 comments No comments
{count} votes

Accepted answer
  1. SunnyNiu-MSFT 1,696 Reputation points
    2021-01-05T06:58:20.643+00:00

    @Rafael Aguilar
    Hi,
    We tried to get the current time of the device through CMPIVOT, but we did not find a specific query to get the current time of the device directly. We found an indirect query method to get the current time of the device.
    You may try the following query: ComputerSystem. The current time of the device can be calculated from the Current Time Zone according to UTC. The specific screenshot is as follows:
    53547-16.png


    If the response is helpful, please click "Accept Answer"and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Garth Jones 2,076 Reputation points
    2021-02-05T16:38:22.527+00:00

    BTW, in theory you can do this using the script feature and powershell.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.