Script or Executable Failed to start - Problem with Agent running Cscript
Home  » Forums  » Script or Executable Failed to start - Problem with Agent running Cscript

Script or Executable Failed to start - Problem with Agent running Cscript
Posted: Fri, Nov 06, 2009 8:01 AM :: Rank: 0
Author
Points: 486
Level: System Center Hero

Anyone have a suggestion on this problem? Would giving the Local System Account Read and Execute rights risky?

Thanks

Error

Alert: Script or Executable Failed to start
Alert description: Failed to create process due to error '0x80070005 :
Access is denied. this workflow will be unloaded.
Command executed: "C:\WINDOWS\system32\cscript.exe" /nologo
"GetSQL2005DB.vbs" ABCSVR001\BKUPEXEC
Working Directory: C:\Program Files\System Center Operations Manager
2007\Health Service State\Monitoring Host Temporary Files 2\114\

One recommended Solution was to give the local system account Read & Execute rights for Csript.exe

http://www.microsoft.com/communities/newsgroups/en-us/default.aspx?dg=microsoft.public.opsmgr.general&tid=35b3d97c-ddb2-4e6b-ac8d-a48c73ad10ec&cat=&lang=&cr=&sloc=&p=1

Reply  
Report Abuse
Re: Script or Executable Failed to start - Problem with Agent running Cscript
Posted: Fri, Nov 06, 2009 8:29 AM :: Rank: 0
Author
Points: 9939
Level: System Center Specialist
I'm just wondering, since when does Local System not have these permissions per default?

Also, you shouldn't use Local System as the Action Account but a Domain User that is Local Administrator on all the Servers.
Reply  
Report Abuse
Re: Script or Executable Failed to start - Problem with Agent running Cscript
Posted: Fri, Nov 06, 2009 8:43 AM :: Rank: 0
Author
Points: 486
Level: System Center Hero
Here is another one on the same server, this time it was a VBS.

Failed to create process due to error '0x80070005 : Access is denied.

Command executed: "C:\WINDOWS\system32\cscript.exe" /nologo "MemoryUtilization.vbs" 2.5



The Microsoft Field Engineer recommended Local System, but I use a RunAs Domain Level Account for Domain Controllers where more privledges are needed. I could set it to use that account for that one server and see if it helps.

Reply  
Report Abuse
Re: Script or Executable Failed to start - Problem with Agent running Cscript
Posted: Fri, Nov 06, 2009 11:06 AM :: Rank: 0
Author
Points: 486
Level: System Center Hero
I am testing using a High Level Service Account as the action account. So far 2 hours have passed and there are no errors.

Is there a security risk to using a Domain Admin level account like used for Domain Controllers on all servers as the action account?

Reply  
Report Abuse
Re: Script or Executable Failed to start - Problem with Agent running Cscript
Posted: Fri, Nov 06, 2009 11:10 AM :: Rank: 0
Author
Points: 10104
Level: System Center Expert
Does this error occur on a cluster system or a single machine?
Reply  
Report Abuse
Re: Script or Executable Failed to start - Problem with Agent running Cscript
Posted: Fri, Nov 06, 2009 11:39 AM :: Rank: 0
Author
Points: 486
Level: System Center Hero
Its a single machine. However, new script failures just came in from that server, so using an elevated domain account didn't help.
Reply  
Report Abuse
Re: Script or Executable Failed to start - Problem with Agent running Cscript
Posted: Fri, Nov 06, 2009 11:45 AM :: Rank: 0
Author
Points: 10104
Level: System Center Expert
Did you try to restart the WMI service?
Reply  
Report Abuse
Re: Script or Executable Failed to start - Problem with Agent running Cscript
Posted: Mon, Nov 09, 2009 11:03 AM :: Rank: 0
Author
Points: 486
Level: System Center Hero
I restarted the WMI service, but I wonder if the problem could be related to the very low bandwidth on that segment of the WAN. Logging in to that server via Terminal Services took almost 2 minutes versus 5 seconds on a normal system. If SCOM were attempting to run a script and its connection to the Management server was very slow, would that time-out the script and cause it to fail?

Reply  
Report Abuse

Home  » Forums  » Script or Executable Failed to start - Problem with Agent running Cscript
Tag Cloud
Quick Links
Top Contributors
Pete Zerger
Points: 25175
Level: System Center Expert
Simon Skinner
Points: 20093
Level: System Center Expert
Tommy Gunn
Points: 19054
Level: System Center Expert
MadHatter
Points: 11573
Level: System Center Expert
Stefan Koell
Points: 10104
Level: System Center Expert