Dabbler wrote:
[Quoted Text] > does anyone have an example of how to write to an eventlog in PowerShell? I > need to record success or failure of a script to Application log. > > Thanks much.
If you're using Powershell, you can use either the WshShell COM object, or the EventLog class in the .NET System.Diagnostics namespace.
Hope this helps.
Trevor Sullivan MCP http://develnet.blogspot.com
|