Run a script with admin privileges on all clients 0x80070005

Alper Ertürk 1 Reputation point
2021-01-27T11:07:44.007+00:00

Hello Microsoft community,

i am already searching for a solution since weeks and close to give up, please help me.
What i want to do sounds simple:
Run this cmd line with admin rights, on every domain client, as soon as available, via gpo: \<servername>\FaxClients\setup \<servername>\Fax.CLT
But i end up with gpresult 0x80070005. The users can access the file on the server but they dont have local admin rights.
(obviously i can't give them local admin rights)

There must be a simple way to install remotely a .exe :(

Kind regards

Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
5,574 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Thameur-BOURBITA 33,886 Reputation points
    2021-01-28T22:52:38.24+00:00

    Hi,

    You can create a schedule task using Group policy preference to run this script using the system account which has local admin right by default on the client machine.


    Please don't forget to mark helpful reply as answer

    0 comments No comments

  2. Fan Fan 15,351 Reputation points Microsoft Vendor
    2021-01-29T02:23:43.373+00:00

    Hi,

    When you run create the task , you can configure the task to run as the system or the domain user with the option checked :Run with the highest privileges.
    61596-1293.jpg
    If there are any updates, welcome to let us know.
    Best Regards,


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.