A cmdlet should be available for waiting for event log entries
Votes from Connect: 17
Original Date Submitted: 7/14/2013 10:21:11 PM
Description:
Contact Information
Handle: Jan Egil Ring
Site Name: PowerShell
Feedback ID: 793869
Frequency: Always Happens
Regression: Yes, this happens in all previous versions
Problem Description:
A cmdlet should be available for waiting for event log entries. Currently the user will need to manually configure an event subscription in order to listen for new event log entries.
A new cmdlet (for example Wait-EventLog) should be available and capable of listening for new events in one or more specified event logs, both from local and remote computers.
Product Studio item created by Connect Synchronizer due to creation of feedback ID 793869 (http://connect.microsoft.com/PowerShell/feedback/ViewFeedback.aspx?FeedbackID=793869).
Repro Steps:
Register-WmiEvent -Query "Select * from _InstanceCreationEvent Where TargetInstance ISA 'Win32NTLogEvent'" -Action { “Some action” }
Expected Results:
PS C:> Get-WinEvent -ListLog "Microsoft-Windows-DSC/Operational" | Wait-EventLog
TimeCreated Id LevelDisplayName Message
7/14/2013 8:15:49 AM 4115 Information Consistency engine was run successfully.
7/14/2013 8:15:47 AM 4197 Information Reading the file content from C:\Windows\System32\Configuration...
7/14/2013 8:15:47 AM 4197 Information Reading the file content from C:\Windows\System32\Configuration...
7/14/2013 8:15:47 AM 4197 Information Reading the file content from C:\Windows\System32\Configuration...
7/14/2013 8:15:47 AM 4197 Information Reading the file content from C:\Windows\System32\Configuration...
7/14/2013 8:15:47 AM 4197 Information Reading the file content from C:\Windows\System32\Configuration...
7/14/2013 8:15:47 AM 4114 Information Running consistency engine.
7/14/2013 8:15:47 AM 4197 Information Reading the file content from C:\Windows\System32\Configuration...
7/14/2013 8:15:47 AM 4197 Information Reading the file content from C:\Windows\System32\Configuration...
7/14/2013 8:15:47 AM 4197 Information Reading the file content from C:\Windows\System32\Configuration...
7/14/2013 8:15:47 AM 4197 Information Reading the file content from C:\Windows\System32\Configuration...
7/14/2013 8:15:47 AM 4197 Information Reading the file content from C:\Windows\System32\Configuration...
7/14/2013 8:15:47 AM 4197 Information Reading the file content from C:\Windows\System32\Configuration...
7/14/2013 8:15:47 AM 4197 Information Reading the file content from C:\Windows\System32\Configuration...
7/14/2013 8:15:47 AM 4197 Information Reading the file content from C:\Windows\System32\Configuration...
Internal BugId: 4304
