Windows Vista Forums
Vista Forums Home Join Vista Forums Tech Publications Windows 7 Forum Vista Tutorials Webcasts Tags

Welcome to Vista Forums we are your forum for Windows Vista help and discussion. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Vista Newsgroups > Vista security

Start Process as administrator

Update your Vista Drivers
Reply
 
Thread Tools Display Modes
Old 01-05-2007   #1 (permalink)
Pascal Berger
Guest


 

Start Process as administrator

Is there a way (by API calls or by using a tool) to start a process from
a standard user account that has administrator privileges *without*
showing any UI under vista?
I need something like the runas.exe but with the ability to supply also
the password of a certain user.

Thanks in advance
Pascal

My System SpecsSystem Spec
Old 01-05-2007   #2 (permalink)
Jesper
Guest


 

RE: Start Process as administrator

No. UAC is specifically designed not to permit this. To do so would be a
vulnerability.

You can use run as and supply the password using a batch file or the like,
but doing so would be a bad idea from a security perspective as the password
would be readable to anyone who can execute the file.

"Pascal Berger" wrote:

> Is there a way (by API calls or by using a tool) to start a process from
> a standard user account that has administrator privileges *without*
> showing any UI under vista?
> I need something like the runas.exe but with the ability to supply also
> the password of a certain user.
>
> Thanks in advance
> Pascal
>

My System SpecsSystem Spec
Old 01-05-2007   #3 (permalink)
Jan Wagner
Guest


 

Re: Start Process as administrator

Pascal Berger wrote:
> Is there a way (by API calls or by using a tool) to start a process from
> a standard user account that has administrator privileges *without*
> showing any UI under vista?
> I need something like the runas.exe but with the ability to supply also
> the password of a certain user.


Probably what you are looking for is http://sudowin.sourceforge.net/

Also see the sudowin source code at
http://sourceforge.net/svn/?group_id=143653

You'll have to supply a password for each user though, but it
doesn't need to be their login password.

- Jan
My System SpecsSystem Spec
Old 01-08-2007   #4 (permalink)
Pascal Berger
Guest


 

Re: Start Process as administrator

Jan Wagner wrote:
> Probably what you are looking for is http://sudowin.sourceforge.net/

Thank you for this suggestion. The specific case where I need this
functionality is for a custom made installation program. It has some
functionality that you can specify username & password under which the
installer should run into an INI file.
Currently it just calls CreateProcessWithLogonW with the specified
username and password. Under Vista this will fail with a "Elevation
required" error (ShellExecute will fix this an show the UAC dialog
instead. But since I don't want another password prompt this is no
solution for me).
If I understand correctly SudoWin required a Service to run. Since
you'll need admin rights to install the service this also doesn't work
for me.

(I know this could be solved by using an MSI installer, but since it is
quite a complex and deprecated installation program I want to avoid
rewriting the whole installation process)

Thank you
Pascal
My System SpecsSystem Spec
Reply
Update your Vista Drivers

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
Click Once - dead links - Process.Start Scott .NET General 5 05-13-2008 05:44 AM
Interactive powershell host or start a new process ghandi PowerShell 11 03-25-2008 12:07 AM
Explorer.exe process does not start BST Vista account administration 1 03-12-2008 07:59 PM
Applications will not start, even though the process does. DerickB Vista installation & setup 1 11-22-2007 12:46 AM
Using ProcessStartInfo with [System.Diagnostics.Process]::Start Brandon Shell PowerShell 2 08-11-2006 08:07 PM


Complimentary Industry Resources

Vista Forums has joined forces with TradePub.com to offer you a new, exciting, and entirely free professional resource. Visit http://vistax64.tradepub.com today to browse our selection of complimentary Industry magazines, white papers, webinars, podcasts, and more across 34 industry sectors. No credit cards, coupons, or promo codes required. Try it today!




Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51