Start Process as administrator

Posted: 01-05-2007, 07:38 AM
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
Reply With Quote

Responses to "Start Process as administrator"

Jan Wagner
Guest
Posts: n/a
 
Re: Start Process as administrator
Posted: 01-05-2007, 07:09 PM
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
Reply With Quote
Pascal Berger
Guest
Posts: n/a
 
Re: Start Process as administrator
Posted: 01-08-2007, 07:58 AM
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
Reply With Quote
 
LinkBack Thread Tools Display Modes
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
System Administrator vs. Application Administrator Dave R. Windows Vista Administration 1 02-13-2007 01:20 PM
setting up a administrator account in start up bryland Windows Vista Administration 1 10-04-2006 11:04 PM
How to change Administrator to administrator mingjing Windows XP Performance & Maintenance 0 08-02-2003 03:36 PM
cmd process Henry Windows XP Performance & Maintenance 1 07-07-2003 06:11 AM
How to delete process at start up Skip Windows XP Performance & Maintenance 0 07-05-2003 03:52 AM