When i give get-eventlog | gm , it is getting into infinite loop , i am looking to get property of command ,Please assist
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.