Re: User name and full username



Jack Russell wrote:
The getusername api returns the username not the full username.

Unfortunately you logon with the full user name (you can make these
different by modifying an existing name with control panel, user
accounts).

Is there a simple way to obtain the full user name of the logged on
user?

You must be on an XP "fast user switching" (FUS) box? You don't actually
log on with the Full Name, just click on it. To be anal. <g>

Anyway, I suspect what you're after is offered by NetUserGetInfo.

See: http://vb.mvps.org/samples/NetUser
--
Working without a .NET?
http://classicvb.org/


.



Relevant Pages

  • Re: XP Logon
    ... Using auto login is a security issue, but if you want to there are several ways to go about it, both straightforward. ... Also you should have at least two accounts with admin privileges in case something damages one of the accounts you will be able to login to the other account. ... Download and install TweakUI for XP and use its auto logon feature. ... Lastly you can add the Dialog box that comes up when running control userpasswords2 to the Control Panel with the following tweak: ...
    (microsoft.public.windowsxp.general)
  • Re: User name and full username
    ... Unfortunately you logon with the full user name (you can make these ... different by modifying an existing name with control panel, ... accounts). ...
    (microsoft.public.vb.winapi)
  • Re: Auto login question
    ... > accounts screen. ... > the login screen for you and autologin the user you entered. ...
    (microsoft.public.security)
  • User Accounts are disabled
    ... I was trying to get rid of the whole logon screen, ... management I disabled all my accounts even my system ... screen so that I can enter my control panel and enable my ...
    (microsoft.public.windowsxp.security_admin)
  • Re: User Login
    ... filtering so that only this group gets the deny logon locally privilegs. ... the domain group called Domain Users is a member of the local ... put those user accounts into domain group and apply a GPO to the OU ... "Meinolf Weber" wrote: ...
    (microsoft.public.windows.server.active_directory)