Share via


WriteEventLogCommand Class

The Write-EventLog cmdlet class that is implemented by Windows PowerShell. This class is included in this SDK for completeness only. The members of this class cannot be used directly, nor should this class be used to derive other classes.This class is introduced in Windows PowerShell 2.0.

Namespace: Microsoft.PowerShell.Commands
Assembly: Microsoft.PowerShell.Commands.Management (in Microsoft.PowerShell.Commands.Management.dll)

Usage

'Usage
Dim instance As WriteEventLogCommand

Syntax

'Declaration
<CmdletAttribute("Write", "EventLog", HelpUri:="https://go.microsoft.com/fwlink/?LinkID=135281", RemotingCapability:=RemotingCapability.SupportedByCommand)> _
Public NotInheritable Class WriteEventLogCommand
    Inherits PSCmdlet
[CmdletAttribute("Write", "EventLog", HelpUri="https://go.microsoft.com/fwlink/?LinkID=135281", RemotingCapability=RemotingCapability.SupportedByCommand)] 
public sealed class WriteEventLogCommand : PSCmdlet
[CmdletAttribute(L"Write", L"EventLog", HelpUri=L"https://go.microsoft.com/fwlink/?LinkID=135281", RemotingCapability=RemotingCapability::SupportedByCommand)] 
public ref class WriteEventLogCommand sealed : public PSCmdlet
/** @attribute CmdletAttribute("Write", "EventLog", HelpUri="https://go.microsoft.com/fwlink/?LinkID=135281", RemotingCapability=RemotingCapability.SupportedByCommand) */ 
public final class WriteEventLogCommand extends PSCmdlet
CmdletAttribute("Write", "EventLog", HelpUri="https://go.microsoft.com/fwlink/?LinkID=135281", RemotingCapability=RemotingCapability.SupportedByCommand) 
public final class WriteEventLogCommand extends PSCmdlet

Remarks

This cmdlet writes an event to an event log. For more information about this cmdlet, see Write-EventLog in the Microsoft TechNet library.

For Help at the command line, type:

get-help write-eventlog

Inheritance Hierarchy

System.Object
   System.Management.Automation.Internal.InternalCommand
     System.Management.Automation.Cmdlet
       System.Management.Automation.PSCmdlet
        Microsoft.PowerShell.Commands.WriteEventLogCommand

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Target Platforms

See Also

Reference

WriteEventLogCommand Members
Microsoft.PowerShell.Commands Namespace

Other Resources

Windows PowerShell SDK