local time from a remote computer

Welcome Forums General PowerShell Q&A local time from a remote computer

This topic contains 1 reply, has 2 voices, and was last updated by

2 years, 3 months ago.

  • Author
  • #57161

    Points: 64
    Rank: Member


    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

    Points: 21
    Rank: Member
    invoke-command -ComputerName DC01 -ScriptBlock {get-date}

The topic ‘local time from a remote computer’ is closed to new replies.

denizli escort samsun escort muğla escort ataşehir escort kuşadası escort