none
PowerShell script: 'admin/root' privileges required to execute this application RRS feed

  • Question

  • I am receiving the above message when lunching the following script without admin rights privileges. My question is how can I integrate admin/root privileges in my script, so that it will directly run without prompting any message.

     

    Invoke-Command -ScriptBlock { c:\cctk --controlwlanradio=enable }

     

    I will have to run script through a GPO and deploy to many computers.

    The Active directoy users have no admin right and this script must run on their computers.
    • Edited by Dixon Guy Tuesday, July 25, 2017 4:44 PM
    • Moved by Bill_Stewart Wednesday, September 13, 2017 9:08 PM No, you cannot bypass the UAC prompt
    Tuesday, July 25, 2017 1:54 PM

All replies

  • You can't.  Logon scripts run as the user at their privilege level.

    You cannot elevate a script deployed via a GPO.

    What are you trying to do that is forbidden and why are you doing it in a GPO script?


    \_(ツ)_/

    Tuesday, July 25, 2017 2:00 PM