Microsoft.PowerShell.Diagnostics
本節包含隨 PowerShell Microsoft.PowerShell.Diagnostics 模組一起安裝的 Cmdlet 說明主題,其中包含管理事件記錄檔數據的 Cmdlet。
本課程模組只能在 Windows 平臺上使用。
Microsoft.PowerShell.Diagnostics
Get-Counter |
從本機和遠端電腦取得性能計數器數據。 |
Get-WinEvent |
從本機和遠端電腦上的事件記錄檔和事件追蹤記錄檔取得事件。 |
New-WinEvent |
為指定的事件提供者建立新的 Windows 事件。 |