System.Runtime.InteropServices.COMException: A required privilege is not held by the client. (Exception from HRESULT: 0x80070522)

Hi guys,

When we try to run the robot through task scheduler we get this error

RemoteException wrapping System.Runtime.InteropServices.COMException: A required privilege is not held by the client. (Exception from HRESULT: 0x80070522) .

Interesting is that when we restart the VM, the process is ran, but as soon we sign out, the process fails to run on the second try.

Studio version 20.4.

Any suggestions?

@Phoenixxx

Check below link

Hope this may help you

Thanks

Did that already, nothing helped. But now I see when I kill the services from Task Manager and then restart them from Services, evrything works fine. After I sign out and try to start the script the error pops again.

@Phoenixxx

Did you try all the ways in that link mentioned?

You can keep a track of event viewer in that VM and track all the errors

Sometimes we will not able to track the errors too

Is it happened recently or happened before also?

As it is administrator kind of privilege issue, you can request your VM admin to allot full permissions

Even if the problem persists suggest to rollback the VM to the previous working state

Hope this helps you

Thanks

Yes, if we set the account as Admin everything is fine, but for security reasons we cant. Interesting is that on another machine the accounts are not admins and they work fine. We’ve checked everything and the set up is the same. The only different thing is the studio version - 18.4
Can you @loginerror help with that issue?

It is really hard to say. We officially support unattended automation only via Orchestrator, with the legacy possibility to use the Task Scheduler method.

If you are an enterprise customer, with a very specific use-case, I would advise you to contact our technical support for further consultation: