大网数据广告活动
启动与系统组件

Run Program activity returns error

· 52CE 我爱测

Fixes an issue where you receive the Process creation failed - The system cannot find the file specified error when executing the Run Program activity.

This article helps you fix an issue where you receive the Process creation failed on <computer> - The system cannot find the file specified error when executing the Run Program activity.

Applies to:   All versions of Orchestrator
Original KB number:   2748718

Symptoms

Executing the Run Program activity from System Center Orchestrator results in the activity returning a failed status, and the Error Summary Text published data contains the following error:

Process creation failed on <computer> - The system cannot find the file specified. (code 2)

This error will be returned even if the path to the program being executed has been confirmed to be valid on the target computer and the user account configured for the Orchestrator Runbook Service, or directly in the Security tab of the Run Program activity has been verified as a member of the local Administrators group on the target computer.

Cause

The Orchestrator Run Program service (orunprogram) on the target computer, used to execute the configured program or command, doesn't have sufficient privilege to create the process in the manner required for the Run Program activity. This is typically a result of the service on the target computer that doesn't use LocalSystem user account to create the process.

Resolution

The service that creates the process on the target computer, Orchestrator Run Program service (orunprogram), by default is configured to use LocalSystem as the logon credentials. LocalSystem has a special user right that even members of the local Administrators don't have by default, which is Act as part of the operating system. This user right allows the user to create a process using the credentials of another user that is required for the Run Program activity to succeed.

There are three resolution options available:

Resolution 1

Stop and delete the Orchestrator Run Program service (orunprogram) from the target computer allowing System Center Orchestrator to reinstall the service automatically using the default LocalSystem user account at next execution of the Run Program activity.

Execute the following commands using an elevated Command Prompt on the computer that's the target of the Run Program activity to stop and delete the Orchestrator Run Program (orunprogram) service:

sc stop orunprogram
sc delete orunprogram

Resolution 2

Stop the Orchestrator Run Program service (orunprogram) on the target computer and configure the service to use the LocalSystem account to log on, then restart it.

Execute the following commands using an elevated Command Prompt on the computer that is the target of the Run Program activity to stop the Orchestrator Run Program service (orunprogram), change the user account to LocalSystem and then restart it:

sc stop orunprogram
sc config orunprogram obj= LocalSystem type= interact type= own
sc start orunprogram

Source: Microsoft Learn / IT Pro troubleshooting by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / IT Pro troubleshooting
适用范围
See source applicability · Source date 06/26/2024
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。