Contact Info

Crumbtrail

ActiveXperts.com » Administration » Powershell » Powershell 2.0 » New-EventLog

New-EventLog - Powershell 2.0 CmdLet

Microsoft Windows PowerShell is a command-line shell and scripting tool based on the Microsoft .NET Framework. It is designed for system administrators, engineers and developers to control and automate the administration of Windows and applications.

More than hundred command-line tools (so called "cmdlets") can be used to perform system administration tasks and Windows Management Instrumentation (WMI). These cmdlets are easy to use, with standard naming conventions and common parameters, and standard tools for piping, sorting, filtering, and formatting data and objects.

New-EventLog


Short description
Creates a new event log and a new event source on a local or remote computer.

Syntax
New-EventLog [-LogName] <string> [-Source] <string[]> [[-ComputerName] <string[]>] [-CategoryResourceFile <string>]
 [-MessageResourceFile <string>] [-ParameterResourceFile <string>] [<CommonParameters>]

Description
This cmdlet creates a new classic event log on a local or remote computer. It can also register an event source tha
t writes to the new log or to an existing log.

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