Get-member for Get- eventlog

Welcome Forums General PowerShell Q&A Get-member for Get- eventlog

  • This topic has 1 reply, 2 voices, and was last updated 3 weeks ago by
    Participant
    .
Viewing 1 reply thread
  • Author
    Posts
    • #236398
      Participant
      Topics: 3
      Replies: 0
      Points: 10
      Rank: Member

      When i give get-eventlog  | gm , it is getting into infinite loop , i am looking to get property of  command ,Please assist

    • #236419
      Participant
      Topics: 5
      Replies: 2373
      Points: 6,011
      Helping Hand
      Rank: Community MVP

      Don’t you get a prompt to enter a logname? As you can see in the docs to Get-Eventlog the cmdlet uses a Win32 API that is deprecated. You should not use it anymore anyway. Use Get-WinEvent instead.

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