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
Viewing 1 reply thread
  • Author
    • #236398
      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
      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.