On Mar 29, 9:05 am, Tim Golden <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > On Mar 29, 8:23 am, Tim Golden <[EMAIL PROTECTED]> wrote: > >> [EMAIL PROTECTED] wrote: > >>> One of my co-workers thought I could do > >>> something like this: > >>> c = wmi.WMI() > >>> for i in c.Win32_UserAccount(Name=user): > >>> # Get user paths somehow. > >>> I messed around with that, but I think he was mistaken. It has lots of > >>> good info, but not what I need. > >>> I apologize for not being specific. I will look at those win32net > >>> functions. > >>> Mike > >> Might depend on what you mean by "profile" but would the > >> users' homeDirectory/homeDrive active directory attributes > >> or the profilePath be of use here? If so, they're fairly > >> easy to get hold of. > > >> TJG > > > Yes. It's the homeDirectory as you say. Once again the IT community's > > use of multiple terms for the same thing has bitten me. > > I take it you're OK for getting things out of AD? > > TJG
Actually no. Our organization does not use Active Directory. In fact, the server I need to query happens to be an NT 4.0 box. We do have a Win2k Server, but it is for specialized services. Mike -- http://mail.python.org/mailman/listinfo/python-list