Hi All, I am trying to diagnose a periodic server issue using a Powershell script that is executed when a Perfmon alert trigger is fired.
When the alert trigger fires, it runs the powershell exe and passes it the name of the script that grabs some environment stats.
My problem is that although Powershell seems to kick off, the script fails with several .NET runtime errors (see below).
Has anyone encountered this problem before and fixed it.
I guess I could run a script that monitors the server and then grabs that stats, but it would be simpler to use Perfmon alerts at this stage.
Thanks, Innes
Event Type: Error
Event Source: .NET Runtime
Event Category: None
Event ID: 1023
Date: 6/11/2008
Time: 4:51:01 p.m.
User: N/A
Computer: L-xxxxxx
Description:
.NET Runtime version 2.0.50727.1433 – The Win32 internal error “Access is denied” 0x5 occurred when retrieving handle for active console output buffer. Please contact Microsoft Support Services.
Event Type: Error
Event Source: .NET Runtime 2.0 Error Reporting
Event Category: None
Event ID: 5000
Date: 6/11/2008
Time: 4:51:01 p.m.
User: N/A
Computer: L-xxxxxx
Description:
EventType clr20r3, P1 powershell.exe, P2 6.0.5430.0, P3 451acab4, P4 microsoft.powershell.consolehost, P5 1.0.0.0, P6 451ac9ad, P7 1d4, P8 4d, P9 fatalerror, P10 NIL.