Getting user name during NT logon 
Author Message
 Getting user name during NT logon

I am trying to write a VB 5.0 program to function as a logon script.
The program runs fine if I run it after I am logged in but fails if I
make it my logon script.

The point at which it fails is getting the user name.  If I use the
WNetGetUserName function, then the user name is returned as an empty
string.

If I use the GetUserName function, the program GPF's at that point.

Anyone have any idea how to get the user name while running as a logon
script.  It must be possible because the KixStart program does it.

Thanks.



Tue, 04 Apr 2000 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Getting the user's logon name and computer name

2. Getting WinNT logon names and user groups

3. listing NT logon names of logged on users to database

4. NT domain logon id or user name

5. getting windows NT user name

6. Getting NT Users LOGIN NAME?

7. Getting NT User Name in VBScript

8. Getting NT User Login Name

9. Getting user names on NT domain

10. getting NT user names

11. Getting the NT User Name

12. Getting the full user name under Win NT

 

 
Powered by phpBB® Forum Software