local time from a remote computer

Tagged: 

This topic contains 1 reply, has 2 voices, and was last updated by Profile photo of Daan Weda Daan Weda 3 weeks, 6 days ago.

  • Author
    Posts
  • #57161
    Profile photo of Tony Antony
    Tony Antony
    Participant

    Hello,

    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
    Profile photo of Daan Weda
    Daan Weda
    Participant
    invoke-command -ComputerName DC01 -ScriptBlock {get-date}

You must be logged in to reply to this topic.