Finding User Profile path

Tim Golden mail at timgolden.me.uk
Thu Mar 29 09:23:31 EDT 2007


kyosohma at gmail.com 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



More information about the Python-list mailing list