LogonUser Win32Api

bri189a

Well-known member
Joined
Sep 11, 2003
Messages
1,004
Location
VA
Im using this function for a program in C#. Basically this programs purpose it to reside on every client we have. When I have something that the client needs to install this program will start the program to be installed in quiet mode. In our domain users are not allowed to install programs. We do not use a W2K server so we cannot publish applications to the computers or users. We are not going to buy third party software. We do use W2K clients though and this is where the problem starts. In order to use LogonUser the calling process must have SE_TCB_NAME privilidges, and Microsoft can say what they want about LOGON32_INTERACTIVE_LOGON not requiring it... but thats BS because I still get ERROR_PRIVILIDGE_NOT_HELD with that too. Using USRMGR.EXE on the server I can give a user (for the program) the abilities needed, however since the clients are W2K they dont pay attention to those settings, therefore all my EFFECTIVE SETTINGS on the client are still restricted to W2K defaults which cant be changed; yes you can change LOCAL SETTINGS, but the EFFECTIVE SETTINGS over-ride the LOCAL SETTINGS. Anyone with some code that they know works, Id be willing to try. Should I try using a differant function? The biggest problem with this function is that I want the program to always run as certain user, but I havent found an easy way to do this. Suggestions, questions, anything, anybody... Please... this is driving me nuts.
 
Back
Top