Microsoft Windows Vista Community Forums - Vistaheads
Recommended Download



Welcome to the Microsoft Windows Vista Community Forums - Vistaheads, YOUR Largest Resource for Windows Vista related information.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so , join our community today!

If you have any problems with the registration process or your account login, please contact us.

Driver Scanner

Start Process as administrator

microsoft.public.windows.vista.security






Speedup My PC
Reply
  #1 (permalink)  
Old 01-05-2007
Pascal Berger
 

Posts: n/a
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
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 01-05-2007
=?Utf-8?B?SmVzcGVy?=
 

Posts: n/a
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
>

Reply With Quote
  #3 (permalink)  
Old 01-05-2007
Jan Wagner
 

Posts: n/a
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
Reply With Quote
  #4 (permalink)  
Old 01-08-2007
Pascal Berger
 

Posts: n/a
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
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Start Menu Folder Redirection =?Utf-8?B?QmVu?= microsoft.public.windows.vista.networking sharing 1 03-20-2007 21:37
Delete Administrator Account? =?Utf-8?B?TWNHdXl3ZXI=?= microsoft.public.windows.vista.administration accounts passwords 7 03-11-2007 15:10
Pseudo-Admin vs Run as Administrator? Gerry Hickman microsoft.public.windows.vista.security 8 01-13-2007 01:53
Re: SUID Kurt Harriger microsoft.public.windows.vista.security 7 12-18-2006 11:06
Administrator account with *full* rights? Bill Hobson microsoft.public.windows.vista.security 8 12-15-2006 16:02




All times are GMT +1. The time now is 15:13.




Driver Scanner - Free Scan Now

Vistaheads.com is part of the Heads Network. See also XPHeads.com , Win7Heads.com and Win8Heads.com.


Design by Vjacheslav Trushkin for phpBBStyles.com.
Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.6.0 RC 2

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 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120