Find all NTP values

Welcome Forums General PowerShell Q&A Find all NTP values

Viewing 3 reply threads
  • Author
    Posts
    • #260622
      Participant
      Topics: 129
      Replies: 277
      Points: 365
      Rank: Contributor

      Hello,

      I am trying to pull NTP values on all DC’s in a domain. I have this code:

      I don’t get any error but I don’t get any values for all those DC’s either. What am I doing incorrectly?

    • #260643
      Participant
      Topics: 8
      Replies: 617
      Points: 2,393
      Helping Hand
      Rank: Community Hero

      The only change I recommend is not looping over them, simply pass all to invoke-command to have them run asynchronously (up to 32 by default)

      You should see output like this

    • #261090
      Participant
      Topics: 129
      Replies: 277
      Points: 365
      Rank: Contributor

      Thanks Doug. If I wanted to collect all of that output in an export? This only captures one row.

    • #261126
      Participant
      Topics: 8
      Replies: 617
      Points: 2,393
      Helping Hand
      Rank: Community Hero

      Simply move the export outside of the scriptblock

Viewing 3 reply threads
  • You must be logged in to reply to this topic.