Share via


Operations manager Agent fails to execute VB scripts - Logs event ID 21405

Symptoms :

Operations manager Agents fails to execute any VB Scripts.

On the Operations manager Event logs you would see these errors :

Log Name: Operations Manager

Source: Health Service Modules

Date:

Event ID: 21405

Task Category: None

Level: Warning

Keywords: Classic

User: N/A

Computer:

Description:

The process started at 15:51:34 failed to create System.PropertyBagData, no errors detected in the output. The process exited with 1

 Command executed: "C:\Windows\system32\cscript.exe" /nologo "AgentMinRequiredVersionCheck.vbs" 6.1.7221.0

Working Directory: C:\Program Files\System Center Operations Manager 2007\Health Service State\Monitoring Host Temporary Files 1\1116\

One or more workflows were affected by this.

Workflow name: Microsoft.SystemCenter.Agent.Configuration.MinRequiredVersionCheckMonitor

Instance name:

Instance ID: {CC5DA939-EC84-E808-8F40-0311FD2D3861}

Management group:


Log Name: Operations Manager

Source: Health Service Modules

Date:

Event ID: 21405

Task Category: None

Level: Warning

Keywords: Classic

User: N/A

Computer:

Description:

The process started at 15:57:03 failed to create System.Discovery.Data, no errors detected in the output. The process exited with 1

 Command executed: "C:\Windows\system32\cscript.exe" /nologo "DiscoverSQL2008RSDiscovery.vbs" {FC099BD0-95C9-C87A-39A1-903D80D8AD20} {1ECD6092-CF6B-BD1A-973B-C21B8CC4804A}

Working Directory: C:\Program Files\System Center Operations Manager 2007\Health Service State\Monitoring Host Temporary Files 2\249\

One or more workflows were affected by this.

Workflow name: Microsoft.SQLServer.2008.ReportingServicesDiscoveryRule.Server

Instance name:

Instance ID: {1ECD6092-CF6B-BD1A-973B-C21B8CC4804A}

Management group:

Looking at the ETL Trace logs :

EventTrace

[1] [3192] [4392] [05/31/2012-10:28:12.230] [ModulesBatchResponse] [] [CommandExecutorProcessTrace] [] [BatchResponse::RunProcess] [BatchResponse_cpp2129]Creating application 'C:\Windows\system32\cscript.exe' with command line '"C:\Windows\system32\cscript.exe" /nologo "SCOMpercentageCPUTimeCounter.vbs" xxxxxxx  false 3' in working directory 'C:\Program Files\System Center Operations Manager 2007\Health Service State\Monitoring Host Temporary Files 1\1020\

[1] [3192] [4392] [05/31/2012-10:28:12.256] [ModulesBatchResponse] [] [CommandExecutorProcessTrace] [] [BatchResponse::RunProcess] [BatchResponse_cpp2129]Creating application 'C:\Windows\system32\cscript.exe' with command line '"C:\Windows\system32\cscript.exe" /nologo "AgentMinRequiredVersionCheck.vbs" xxxxxx 6.1.7221.0' in working directory 'C:\Program Files\System Center Operations Manager 2007\Health Service State\Monitoring Host Temporary Files 1\1128\

[0] [3192] [4392] [05/31/2012-10:28:12.631] [ModulesBatchResponse] [] [CommandExecutorProcessTrace] [] [BatchResponse::StopProcessing] [BatchResponse_cpp1233]Process with command line '"C:\Windows\system32\cscript.exe" /nologo "AgentMinRequiredVersionCheck.vbs" 6.1.7221.0' returned

StdOut:

CScript Error: Can't find script engine "VBScript" for script "C:\Program Files\System Center Operations Manager 2007\Health Service State\Monitoring Host Temporary Files 1\1128\AgentMinRequiredVersionCheck.vbs".

StdErr:NULL

ExitCode:1

[0] [3192] [4392] [05/31/2012-10:28:12.644] [ModulesBatchResponse] [] [CommandExecutorProcessTrace] [] [BatchResponse::StopProcessing] [BatchResponse_cpp1233]Process with command line '"C:\Windows\system32\cscript.exe" /nologo "SCOMpercentageCPUTimeCounter.vbs false 3' returned

StdOut:

CScript Error: Can't find script engine "VBScript" for script "C:\Program Files\System Center Operations Manager 2007\Health Service State\Monitoring Host Temporary Files 1\1020\SCOMpercentageCPUTimeCounter.vbs".

 StdErr:NULL

Cause :

No Permission been set to the location in registry : CLSID\B54F3741-5B07-11CF-A4B0-00AA004A55E8}\InprocServer32\Default))

 By default it has to be : SYSTEM (READ ACCESS)

Administrators(Localsystem\administrators) (READ ACCESS)

Users (Localsystem\users) (READ ACCESS)

TrustedInstaller (Full control ACCESS)

 

Resolution :

Once we make sure we have proper permission on this key and restart of the system center managment service on the agent box should make the vbscripts run successfully.