Information Technology Reference
In-Depth Information
FIGURE 1-15 The Create Custom View dialog box of the Event Viewer console
Using Windows powerShell to monitor events
You can use Windows PowerShell to monitor events. A quick way to get a list of all available
event-related Windows PowerShell cmdlets, organized to make it easier to find what you
need, is to use this command:
Get-Command *event*,*counter* | sort noun,verb | Format-Table -auto Verb,Noun,Module
This command gives you a list of all the Windows PowerShell cmdlets on the current
computer that have “event” or “counter” in their name, sorted by noun.
Some of the common Windows PowerShell cmdlets used for server monitoring are shown
in Table 1-2.
TABLE 1-2 Popular Windows PowerShell cmdlets for server monitoring
Cmdlet
Description
Get-Counter
Returns an object with performance counter data from the specified computer(s).
Export-Counter
Exports performance data to log files in .blg, .csv, or .tsv format. The data exported
comes from the Get-Counter or Import-Counter cmdlets.
 
Search WWH ::




Custom Search