If I made it a service, how would I get it to run as an administrator?
Would I have to have the user go in and change the run as option, or
would I be able to programatically set it to run as an admin as long
as I had their windows password?
Thanks.
> <hurricane_number_...@yahoo.com> wrote in message
>
[quoted text clipped - 8 lines]
>
> Look into making it a service
MikeD - 26 Feb 2008 15:33 GMT
If I made it a service, how would I get it to run as an administrator?
Would I have to have the user go in and change the run as option, or
would I be able to programatically set it to run as an admin as long
as I had their windows password?
You'd have the service log on using administrator credentials. Take a look
in Services (the Log On tab).

Signature
Mike
Microsoft MVP Visual Basic
Bob Butler - 26 Feb 2008 16:11 GMT
> If I made it a service, how would I get it to run as an administrator?
> Would I have to have the user go in and change the run as option, or
> would I be able to programatically set it to run as an admin as long
> as I had their windows password?
as long as you know the admin password you can configure it using API calls
CreateService and/or ChangeServiceConfig
IIRC it can also be set using ADSI with
GetObject("WinNT://./<name>,Service")