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
[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)
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
[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
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
[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.
>
>
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
[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
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