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

Powershell Get-Eventlog Problem

$
0
0

Hello

Trying to do this command "Get-Eventlog -LogName 'DFS Replication' -InstanceId 4412 -Newest" however it will not work with the "InstanceId 4412" section of the code.  If I take "InstanceId 4412" it works but without filtering it to event id 4412. Seems to be only affecting the DFS Replication log as when I do a similiar command on a different log e.g. Security Log it works. Is there anyway to get around this?

Kind Regards

Charlie 


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>