I'm trying to get a runbook to run by using C:\Windows\System32\SCOJobRunner.exe -RunBookPath:"PathToMyRunbook" in powershell but each time I go to execute this I get this error back:
C:\Windows\System32\SCOJobRunner.exe :
At line:3 char:1
- C:\Windows\System32\SCOJobRunner.exe -RunBookPath:"\In Production\Imp ...
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : NotSpecified: (:String) [], RemoteException
- FullyQualifiedErrorId : NativeCommandError
Unhandled Exception:
System.Data.Services.Client.DataServiceRequestException: An error occurred while processing this request. ---> System.Data.Services.Client.DataServiceClientException: <?xml version="1.0" encoding="utf-8"
standalone="yes"?>
<error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
<code></code>
<message xml:lang="en-US">The requested operation requires Publish permissions on the Runbook</message>
</error>
at System.Data.Services.Client.DataServiceContext.SaveResult.<HandleBatchResponse>d__50.MoveNext()
--- End of inner exception stack trace ---
at System.Data.Services.Client.DataServiceContext.SaveResult.HandleBatchResponse()
at System.Data.Services.Client.DataServiceContext.SaveResult.EndRequest()
at System.Data.Services.Client.DataServiceContext.SaveChanges(SaveChangesOptions options)
at System.Data.Services.Client.DataServiceContext.SaveChanges()
at Microsoft.SystemCenter.Orchestrator.Integration.Administration.SCOJobRunner.SCOJobRunner.InvokeRunbook()
at Microsoft.SystemCenter.Orchestrator.Integration.Administration.SCOJobRunner.SCOJobRunner.Main(String[] args)
I am able to run the Runbook perfectly fine through the Runbook designer itself.
I've tried running "TRUNCATE TABLE [Microsoft.SystemCenter.Orchestrator.Internal].AuthorizationCache" on the scorch db but I still get the same error when trying after.
I've made sure that the account I'm using has publish permissions on the permissions window for the runbook.
Strangely enough, there is another runbook that when I execute C:\Windows\System32\SCOJobRunner.exe -RunBookPath:"PathToMyOtherRunook" runs perfectly fine.
Any help would be much appreciated.