# For use with PowerShell v1.0
# Simply just not tested with PowerShell v2.0 - yet..... ;)
# Paste in to your code/script to add a event to Window's Event Log
#
http://msdn.microsoft.com/en-us/library/system.diagnostics.eventlog.writeentry.aspx$PowerShell_Eventing=
new-objectSystem.Diagnostics.EventLog("Application")
$PowerShell_Eventing.Source="Hello_World_CustomApp"
$Event_Type=[System.Diagnostics.EventLogEntryType]::Information
$PowerShell_Eventing.WriteEntry("Hello World token Text",$Event_Type,65000)
# or......
$PowerShell_Eventing=
new-objectSystem.Diagnostics.EventLog("Application")
$PowerShell_Eventing.Source="Hello_World_Blah_Blah_App"
$Event_Type=[System.Diagnostics.EventLogEntryType]::Error
$PowerShell_Eventing.WriteEntry("Hello World - Error String Details of Blah, Blah",$Event_Type,65000)