New Question

Run another elevated process from a different administrator using userdata

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

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

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

avladu gravatar image


this is a PS method that has the "su" like behaviour:


Adrian Vladu

edit flag offensive delete link more


Thanks Adrian!

Stoiky gravatar imageStoiky ( 2016-07-02 09:19:16 +0200 )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


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

Seen: 719 times

Last updated: Jun 27 '16