Execute exe as admin through cygwin

0

I am executing an exe in Windows 7 by logging into it from cygwin. How do i execute it as admin?

Here is the command:

cd /cygdrive/c/autopkg_full
env "CommonProgramFiles(x86)"="C:\Program Files (x86)\Common Files" /bin/bash -c '"C:/exefolder/AutoPKG.exe" 1> autopkg.log 2>&1; echo $? > build.txt'

I have already made the exe "Run as administrator" by changing its properties in compatibility settings, but that doesn't seem to solve.

kingsmasher1

Posted 2019-03-11T16:08:07.217

Reputation: 299

how do you login in cygwin ? – matzeri – 2019-03-12T07:05:29.770

@matzeri ssh as a non-admin user. – kingsmasher1 – 2019-03-15T06:55:25.140

No answers