Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Powershell Get-EventLog and Security Event Log

$
0
0

Hello Community,

I am running the following command from a ps script:

Get-EventLog -LogName Security -After $startDate -Before $endDate -ComputerName $strServer

which works perfectly getting the events from any remote server on my domain.  The query basically collects all events produced in a single day.  What concerns me is the number of logon/logoff events that the command is producing on the server.  Has anyone seen similar behaviour when running the command on a remote server?  Does anyone have a suggestion on how to avoid?  I am not able to reproduce when running locally.

Thanks!


JC - a.k.a Aramane



Viewing all articles
Browse latest Browse all 21975

Trending Articles