Re: Finding User Profile path

2007-03-29 Thread kyosohma
On Mar 29, 10:30 am, Tim Golden <[EMAIL PROTECTED]> wrote: > [resending as the original seems to have got lost; > apologies if it appears as a duplicate] > > At the risk of insulting your intelligence, here's a > rough-and-ready non-AD solution (culled from some code I > had somewhere): > > > impo

Re: Finding User Profile path

2007-03-29 Thread Tim Golden
[resending as the original seems to have got lost; apologies if it appears as a duplicate] At the risk of insulting your intelligence, here's a rough-and-ready non-AD solution (culled from some code I had somewhere): import win32net import win32netcon dc = win32net.NetGetAnyDCName (None, None)

Re: Finding User Profile path

2007-03-29 Thread kyosohma
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_UserAc

Re: Finding User Profile path

2007-03-29 Thread Tim Golden
[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

Re: Finding User Profile path

2007-03-29 Thread kyosohma
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 h

Re: Finding User Profile path

2007-03-29 Thread Tim Golden
[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. > >

Re: Finding User Profile path

2007-03-29 Thread kyosohma
On Mar 29, 2:50 am, Tim Golden <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > Hi, > > > I am trying to query our domain to get a list of our users profile > > locations. I thought I might be able to use WMI, but I can't get it to > > work. > > Can you be a bit more specific: did WMI itse

Re: Finding User Profile path

2007-03-28 Thread Tim Golden
[EMAIL PROTECTED] wrote: > Hi, > > I am trying to query our domain to get a list of our users profile > locations. I thought I might be able to use WMI, but I can't get it to > work. Can you be a bit more specific: did WMI itself not work? Or the Python WMI module? What were the problems? (All t

Finding User Profile path

2007-03-28 Thread kyosohma
Hi, I am trying to query our domain to get a list of our users profile locations. I thought I might be able to use WMI, but I can't get it to work. I am using a Windows XP Pro workstation and Python 2.4 on a mixed environment of Debian Linux (with Samba) and Windows servers. We are in the process