Eventlogs: Unterschied zwischen den Versionen

Aus Wiki-WebPerfect
Wechseln zu: Navigation, Suche
K
K
Zeile 4: Zeile 4:
 
<source lang="powershell">Get-EventLog -Newest 10 -LogName "Application"</source>
 
<source lang="powershell">Get-EventLog -Newest 10 -LogName "Application"</source>
  
=== Spezielle EventLogs (Application and Services Logs) ===
+
==== Spezielle EventLogs (Application and Services Logs) ====
 +
'''Beispiel ''Microsoft-Windows-Hyper-V-VMMS'' EventLogs:'''
 
<source lang="powershell">Get-WinEvent -ComputerName <Hostname> -ProviderName 'Microsoft-Windows-Hyper-V-VMMS' -MaxEvents 10 | ft -Property TimeCreated, MachineName, Id, LevelDisplayName, Message</source>
 
<source lang="powershell">Get-WinEvent -ComputerName <Hostname> -ProviderName 'Microsoft-Windows-Hyper-V-VMMS' -MaxEvents 10 | ft -Property TimeCreated, MachineName, Id, LevelDisplayName, Message</source>
  

Version vom 31. Mai 2017, 09:13 Uhr

Standard EventLogs (Windows Logs)

Letze 10 Application EventLogs anzeigen

Get-EventLog -Newest 10 -LogName "Application"

Spezielle EventLogs (Application and Services Logs)

Beispiel Microsoft-Windows-Hyper-V-VMMS EventLogs:

Get-WinEvent -ComputerName <Hostname> -ProviderName 'Microsoft-Windows-Hyper-V-VMMS' -MaxEvents 10 | ft -Property TimeCreated, MachineName, Id, LevelDisplayName, Message