![]() According to a Microsoft documentation, the main difference is that Get-WinEvent works with “the Windows Event Log technology introduced in Windows Vista.” To get a clearer explanation, you can use two simple cmdlets: The cmdlets work in a similar manner, and Get-EventLog does the trick in most cases. Get-WinEvent is a newer version of Get-EventLog. You might wonder what is the difference between Get-WinEvent and Get-EventLog. PowerShell lets you generate automatic reports about the most important events to read while drinking your morning coffee. It is an invaluable asset if you think about server health monitoring. ![]() Searching the logs using the PowerShell has a certain advantage, though – you can check events on the local or remote computers much quicker using the console. The Event Viewer is an intuitive tool which lets you find all the required info, provided you know what to look for. But first, a few words about the logs in general.įirst, there are two ways to access the events logged in Windows – through the Event Viewer and using the Get-EventLog / Get-WinEvent cmdlets. In this article, I will show you how to use PowerShell and Get-EventLog to perform some Event Log magic. But it is not the only way you can use logged events. Windows Event logs is one of the first tools an admin uses to analyze problems and to see where does an issue come from.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |