locked
Set time - add (-1) hour RRS feed

  • Question

  • How can I set the time using PowerShell to (-1) hour of current time?  Any assistance would be greatly appreciated.
    Wednesday, April 11, 2018 10:15 PM

All replies

  • help Get-Time -online

    What time are you trying to set.  I don't think PowerShell works with an iWatch.


    \_(ツ)_/


    • Edited by jrv Wednesday, April 11, 2018 10:27 PM
    Wednesday, April 11, 2018 10:26 PM
  • Hi,

    Do you mean to adjust the system time forward one hour? If yes, you can try this:
    (Get-Date).AddHours(-1) | Set-Date

    If you need further help, please feel free to let us know.

    Best Regards,
    Albert

    Please remember to mark the replies as an answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com

    Thursday, April 12, 2018 2:15 AM
  • Hi,

    Do you mean to adjust the system time forward one hour? If yes, you can try this:
    (Get-Date).AddHours(-1) | Set-Date

    If you need further help, please feel free to let us know.

    Best Regards,
    Albert

    Please remember to mark the replies as an answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com

    Won't work in a domain....the time is set by the DC and the local time zone setting.


    \_(ツ)_/

    Thursday, April 12, 2018 2:17 AM
  • Hi,

    I'm checking how the issue is going, was your issue resolved?

    And if the replies as above are helpful, we would appreciate you to mark them as answers, and if you resolve it using your own solution, please share your experience and solution here. It will be greatly helpful to others who have the same question.

    Appreciate for your feedback.

    Best Regards,
    Albert

    Please remember to mark the replies as an answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com

    Monday, April 16, 2018 2:39 AM