Re: NetUserGetInfo question

From: Garfield Lewis (galewis_at_SPAM-NO-MOREca.ibm.com)
Date: 04/29/04


Date: Wed, 28 Apr 2004 20:09:14 -0400

Hi Amit,

Thanks for responding to my post. However, I think you missed what I was
asking about. I have all the information you specified, the problem is that
on MSDN there is the following:

>>>
Return level two information and additional attributes about the user
account. This level is valid only on servers. The bufptr parameter points to
a USER_INFO_3 structure. Note that it is recommended that you use
USER_INFO_4 instead.
<<<

Notice the text "This level is valid only on servers". If I am running this
on a Workstation then what should I use to get this information. The text
for USER_INFO_4 says the same thing.

Thx,

-- 
Garfield A. Lewis
"Amit Rahul [MS]" <arahul@online.microsoft.com> wrote in message
news:ebBV91MLEHA.3516@TK2MSFTNGP11.phx.gbl...
> Garfield,
> I would assume you are talking about NetUserGetInfo here. You can use the
> servername as NULL if you want the information for the local
> machine/workstation case. If you are in a domain then you should be using
> NetGetDCName to get the name of the DC and then use that with
> NetUserGetInfo.
> GetUserProfileDirectory return you rthe path to the profile where as
> NetUserGetInfo will give you whole bunch of info on the user including
> usri4_profile. You can use GetProfileType to figure out if its a roaming
> profile. Also with GetUserProfileDirectory it will return you the path of
> profile on that machine where you have logged on since the profile is
> synchronized with the server share only when you log off.
>
> Thanks
> Amit
>
> "Garfield Lewis" <galewis@SPAM-NO-MOREca.ibm.com> wrote in message
> news:eRCUVGILEHA.2624@TK2MSFTNGP09.phx.gbl...
> > Hi All,
> >
> > What are the alternatives to using NetGetUserInfo with info level 3 or 4
> on
> > a non-server machine? The MSDN documentation say info level 3 and 4 are
> only
> > valid for servers. I know we can use GetUserProfileDirectory but if you
> are
> > using a roaming profile it's not clear from the MSDN documentation
whether
> > it will get the correct one.
> >
> > Thx,
> >
> > -- 
> > Garfield A. Lewis
> >
> >
>
>


Relevant Pages

  • Re: newbie to TS 2003 and ts roaming profile please help...
    ... the computer settings, but also the user settings in the TS policy ... EventLog) is make the profile as small as possible. ... already excluded from roaming with the profile. ... At my company we have 2 individual win 2k term servers. ...
    (microsoft.public.windows.terminal_services)
  • Re: Creating Profiles...?
    ... > I think the problem is I can't authenticate to the various servers. ... > again dial into RCN to get/send my work email. ... > work using my ThinkPad and another profile profile to only use at ...
    (microsoft.public.outlook)
  • Re: can NT4 servers and 2003 server play nicely together?
    ... > We have two NT4 servers for our domain. ... trust to the 2003 domain from the SBS domain. ... moving email messages and settings, etc., to the new profile on the same ...
    (microsoft.public.windows.server.migration)
  • Re: Local Drives in TS session
    ... Since the per-user class hive did not unload properly the last time the user logged off, the class registration for each Shell Instance Object does not complete properly. ... I recommend you download and install the latest version of the User Profile Hive Cleanup Service. ... I have two terminal servers that are load balanced and the users in my ... server session and they open 'my computer' the local drives appear as ...
    (microsoft.public.windows.terminal_services)
  • Re: NetGetUserInfo question
    ... I would assume you are talking about NetUserGetInfo here. ... servername as NULL if you want the information for the local ... machine/workstation case. ... GetUserProfileDirectory return you rthe path to the profile where as ...
    (microsoft.public.platformsdk.security)