New to Powershell Scripting – was asked to look at this code to see why it fails

Welcome Forums General PowerShell Q&A New to Powershell Scripting – was asked to look at this code to see why it fails

Viewing 1 reply thread
  • Author
    Posts
    • #265343
      Participant
      Topics: 1
      Replies: 1
      Points: -12
      Rank: Member
    • #265340
      Participant
      Topics: 1
      Replies: 1
      Points: -12
      Rank: Member

      Hello,

      I am new to powershell scripting. I was asked to see why the script above fails with the default pre-defined error message of “UNKNOWN – Could not check logon errors for this interval.”.

      When I try to execute the commmands one at a time (to see where it breaks), it seems that I hit an error near the start with the following command……………………………….$z = Get-Counter “\Server\Errors Logon” | Select -ExpandProperty “CounterSamples”

      Any helps or suggestions would be appreciated. Thank you.

Viewing 1 reply thread
  • You must be logged in to reply to this topic.