... Home  
... Impressum
... ColorConsole

... CMD
... Netsh-XP
... Netsh-7
... Netsh-Vista
... Powershell

Download the Windows 7 Starter, Home (Basic Premium), Professional und Ultimate!


... facebook.de
 
 
ColorConsole [Version 1.7.1000] PowerShell 2.0-Export
Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation.

C:\Windows-7>Powershell get-help Write-EventLog -full

# NAME
Write-EventLog

# SYNOPSIS
Writes an event to an event log.

# SYNTAX
Write-EventLog [-LogName] <string> [-Source] <string> [-EventID] <int> [-Message] <string> [[-EntryType] {Error | Warning | Information | SuccessAudit | FailureAudit}] [-Category <Int16>] [-ComputerName <string>] [-RawData <Byte[]>] [<CommonParameters>]

# DESCRIPTION
The Write-EventLog cmdlet writes an event to an event log.

To write an event to an event log, the event log must exist on the computer and the source must be registered for the event log.

The cmdlets that contain the EventLog noun (the EventLog cmdlets) work only on classic event logs. To get events from logs that use the Windows Event Log technology in Windows Vista and later versions of Windows, use Get-WinEvent.

# PARAMETERS
-Category <Int16>
Specifies a task category for the event. Enter an integer that is associated with the strings in the category message file for the event log.

Required? false
Position? named
Default value 1
Accept pipeline input? false
Accept wildcard characters? false

-ComputerName <string>
Specifies a remote computer. The default is the local computer.

Type the NetBIOS name, an Internet Protocol (IP) address, or a fully qualified domain name of a remote computer.

This parameter does not rely on Windows PowerShell remoting. You can use the ComputerName parameter of Get-EventLog even if your computer is not configured to run remote commands.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-EntryType <EventLogEntryType>
Specifies the entry type of the event. Valid values are Error, Warning, Information, SuccessAudit, and FailureAudit. The default value is Information.

For a description of the values, see System.Diagnostics.EventLogEntryType in the MSDN (Microsoft Developer Network) library at http://go.microsoft.com/fwlink/?LinkId=143599.

Required? false
Position? 4
Default value
Accept pipeline input? false
Accept wildcard characters? false

-EventID <int>
Specifies the event identifier. This parameter is required.

Required? true
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false

-LogName <string>
Specifies the name of the log to which the event is written. Enter the log name (the value of the Log property, not the LogDisplayName). Wildcard characters are not permitted. This parameter is required.

Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false

-Message <string>
Specifies the event message. This parameter is required.

Required? true
Position? 5
Default value
Accept pipeline input? false
Accept wildcard characters? false

-RawData <Byte[]>
Specifies the binary data that is associated with the event, in bytes.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-Source <string>
Specifies the event source, which is typically the name of the application that is writing the event to the log.

Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false

<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".

# INPUTS
None
You cannot pipe input to this cmdlet.

# OUTPUTS
System.Diagnostics.EventLogEntry
Write-EventLog returns objects that represents the events in the logs.

# NOTES

To use Write-EventLog on Windows Vista and later versions of Windows, start Windows PowerShell with the "Run as administrator" option.

# EXAMPLE 1

C:\PS>write-eventlog -logname Application -source MyApp -eventID 3001 -entrytype Information -message "MyApp added a user-requested feature to the display." -category 1 -rawdata 10,20

# Description
-----------
This command writes an event from the MyApp source to the Application event log.

# EXAMPLE 2

C:\PS>write-eventlog -computername Server01 -logname Application -source MyApp -eventID 3001 -message "MyApp added a user-requested feature to the display."

# Description
-----------
This command writes an event from the MyApp source to the Application event log on the Server01 remote computer.

RELATED LINKS
Online version: http://go.microsoft.com/fwlink/?LinkID=135281
Clear-EventLog
Get-EventLog
Limit-EventLog
New-EventLog
Remove-EventLog
Show-EventLog
Write-EventLog
Get-WinEvent

C:\Windows>powershell get-help Limit-EventLog -full

OS: Windows-7 / Windows-Vista // Windows Server 2008
»»»» ColorConsole


0.093
Was kann ich machen, damit 7zip einen Kontextmenü unter Win-7 hat?  / Kann ich mich gegen Abzockermethoden im Netz schützen?  / Ausgegraut in Windows 7: Zuletzt geöffnete Elemente im Startmenü und in der Taskleiste speichern und anzeigen!  / Fehlermeldung: Dieses Programm verhindert, dass Windows abgemeldet wird?  / Was ist x64 und x86? Wo ist der Unterschied?  / Was ist Windows Vista-Aero?  / Wo ist bitte die Zeichentabelle in Windows-7? Ich will ein Sonderzeichen einfügen!  / How can I change the favorites folder in Q-Dir?  / / Lesetipp: 922  / file manager  / Wie lange dauert 35 mal überschreiben?  / Wie kann ich bei Windows 8 auf die 1680x1050 Bildschirmauflösung umstellen / aktivieren  / registrierung bei facebook.de  / Was bedeutet Daten verifizieren?  / Was bedeuten die einzelnen Aufzeichnungen in Lauschangriff, bitte um Erklärung?  /