local time from a remote computer

This topic contains 1 reply, has 2 voices, and was last updated by  Daan Weda 1 year, 6 months ago.

  • Author
  • #57161

    Tony Antony


    How would I get local time a remote computer? I know about net time

    net time \\MXL6270PJF

    It says:

    Current time at \\MXL6270PJF is 11/8/2016 5:41:50 PM

    Local time (GMT-07:00) at \\MXL6270PJF is 11/8/2016 3:41:50 PM

    The command completed successfully.

    How would I get just the local time, 11/8/2016 3:41:50 PM

  • #57286

    Daan Weda
    invoke-command -ComputerName DC01 -ScriptBlock {get-date}

You must be logged in to reply to this topic.