>Hi Larry,
>
>I've been trying to test Rick's code on my NT Server here but GetLastError() is indicating the account doesn't have sufficient privilege. MSDN indicates LogonUser() requires the SE_TCB_NAME ( being part of the trusted computer base; Act as part of the operating system ) privilege to call LogonUser(). Do you ( or anyone else ) know how to assign this privilege in NT Server User Manager? I've looked around in the User Manager but haven't been able to find anything related to this privilege. Or is it assigned elsewhere?
>
Bill,
From the User Manager, select Policies - User Rights. Make sure the Show Advanced User Rights checkbox is checked. Select "Act as part of the operating system" from the drop down. Then click on Add to add your user.
HTH.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao