Re: "run as" possibility
From: William DePalo [MVP VC++] (willd.no.spam_at_mvps.org)
Date: 01/06/05
- Next message: DanB: "Re: Framework 1.0 application looking for 1.1 dll"
- Previous message: William DePalo [MVP VC++]: "Re: how many instances of a dll is loaded w/in a process/IIS.. HELP!!!"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 6 Jan 2005 08:14:35 -0500
"Timo" <Timo@discussions.microsoft.com> wrote in message
news:13E6AD12-2127-4B03-8A62-BFA5DC3E0633@microsoft.com...
> I wrote an application which use WMI and get infos from Active Directory.
> Now we wan't to implement a that the programm can run with "run as"
> possibility. When we tried it was not possible to run the programm
> correctly.
> With an administrative privileg there is no trouble.
> How can I do that?
If you are using WMI from within a program, check the docs for
CreateProcessAsUser()
or CreateProcessWithLogonW()
which could launch the program that does the WMI stuff.
If you are using a scripting language, your script would have launch an
executable which would call one of the functions above to run the script.
Regards,
Will
- Next message: DanB: "Re: Framework 1.0 application looking for 1.1 dll"
- Previous message: William DePalo [MVP VC++]: "Re: how many instances of a dll is loaded w/in a process/IIS.. HELP!!!"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|