New Question
0

Run another elevated process from a different administrator using userdata

asked 2016-06-14 23:02:04 +0300

Stoiky gravatar image

I've tried running a process as another administrator user inside the userdata script but it does not seem to work.

Is this possible in Powershell with Start-Process powershell -Credentials $cred -Verb runas etc... or by using python? Is the UAC at fault?

Thank you.

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2016-06-27 17:58:56 +0300

avladu gravatar image

Hello,

this is a PS method that has the "su" like behaviour: https://github.com/cloudbase/juju-pow...

Thanks.

Adrian Vladu

edit flag offensive delete link more

Comments

Thanks Adrian!

Stoiky gravatar imageStoiky ( 2016-07-02 09:19:16 +0300 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2016-06-14 23:02:04 +0300

Seen: 1,060 times

Last updated: Jun 27 '16