Running bash script as SYSTEM from account with admin rights?
Christian Franke
Christian.Franke@t-online.de
Fri Sep 22 07:41:54 GMT 2023
Martin Wege via Cygwin wrote:
> Hello,
>
> Does Cygwin have a tool to run a bash script as SYSTEM user if my
> account already have admin rights?
No (AFAIK).
I use psexec from Sysinternals tools
(https://learn.microsoft.com/sysinternals/downloads/psexec)
This starts a Cygwin terminal as SYSTEM user:
psexec -s -i c:\cygwin\bin\mintty -
--
Regards,
Christian
More information about the Cygwin
mailing list