Re: [Tutor] WMI

2008-09-17 Thread Steve Willoughby
On Wed, Sep 17, 2008 at 11:37:39AM -0600, Spencer Parker wrote: > Yes...you do have it all correct. Luckily this is all behind a private > network that is firewalled. There is no way to get to this network unless > you are physically on site. Since there isn't even VPN access to this > network c

Re: [Tutor] WMI

2008-09-17 Thread Spencer Parker
Yes...you do have it all correct. Luckily this is all behind a private network that is firewalled. There is no way to get to this network unless you are physically on site. Since there isn't even VPN access to this network currently. This was done for the security problems associated with rando

Re: [Tutor] WMI

2008-09-17 Thread Steve Willoughby
On Wed, Sep 17, 2008 at 10:52:33AM -0600, Spencer Parker wrote: > We have a web interface where people can provision virtual machines. > Currently we do this with Linux machines and it sets a unique IP, username, > startup services, and a password. This is all triggered at startup of the > linux m

Re: [Tutor] WMI

2008-09-17 Thread Spencer Parker
What I am doing is this: We have a web interface where people can provision virtual machines. Currently we do this with Linux machines and it sets a unique IP, username, startup services, and a password. This is all triggered at startup of the linux machines with perl and an xml file. We are try

Re: [Tutor] WMI

2008-09-17 Thread Steve Willoughby
On Wed, Sep 17, 2008 at 10:31:50AM -0600, Spencer Parker wrote: > Is there a way to remotely trigger an event from Linus to a windows machine? > I have basically a virtual machine that this script would run from. I need > to find a way to trigger this event from a linux machine that handles all of

Re: [Tutor] WMI

2008-09-17 Thread Spencer Parker
I meant to hit reply to all...stupid Gmail(not really...all on me...LOL) Is there a way to remotely trigger an event from Linus to a windows machine? I have basically a virtual machine that this script would run from. I need to find a way to trigger this event from a linux machine that handles al

Re: [Tutor] WMI

2008-09-17 Thread Tim Golden
Spencer Parker wrote: I just need to create a local user. [copying back to the list in case it helps others] See if this sets you on the way: http://timgolden.me.uk/python/win32_how_do_i/create-a-local-group-with-a-new-user.html TJG ___ Tutor maill

Re: [Tutor] WMI

2008-09-17 Thread Tim Golden
Spencer Parker wrote: Is there a way to create new users in WMI? I was trying to research this on MSDN, but couldn't find it anywhere... Not possible as far as I know. Do you need a domain user or a local user? TJG ___ Tutor maillist - Tutor@pyth

Re: [Tutor] WMI

2008-09-17 Thread Spencer Parker
Is there a way to create new users in WMI? I was trying to research this on MSDN, but couldn't find it anywhere... On Tue, Sep 16, 2008 at 2:10 PM, Tim Golden <[EMAIL PROTECTED]> wrote: > Spencer Parker wrote: > >> It does of course help to spell IPAddress correctly to get this to work in >> the

Re: [Tutor] WMI

2008-09-16 Thread Tim Golden
Spencer Parker wrote: It does of course help to spell IPAddress correctly to get this to work in the first place. LOL. It is working...thanks again for the help and the wonderful module! Glad it was useful. Thanks for the update. TJG ___ Tutor ma

Re: [Tutor] WMI

2008-09-16 Thread Spencer Parker
It does of course help to spell IPAddress correctly to get this to work in the first place. LOL. It is working...thanks again for the help and the wonderful module! On Tue, Sep 16, 2008 at 1:36 PM, Spencer Parker <[EMAIL PROTECTED]>wrote: > This is the code that I currently have: > > import wmi

Re: [Tutor] WMI

2008-09-16 Thread Spencer Parker
This is the code that I currently have: import wmi con =wmi.WMI() ip = "10.1.10.20" subnet = "255.255.255.0" gateway = "10.1.10.1" wql = "SELECT * FROM Win32_NetworkAdapterConfiguration WHERE IPEnabled = TRUE" for adapter in con.query(wql): ReturnValue = adapter.EnableStatic(IPAddress=ip, S

Re: [Tutor] WMI

2008-09-16 Thread Tim Golden
Spencer Parker wrote: Has anyone here had any experience with WMI extensions in Python? I am trying to remotely change the IP, Subnet, and gateway of a windows machine, but I cannot figure out what it needs to change this. You'll need the Win32_NetworkAdapterConfiguration class and, for ease

[Tutor] WMI

2008-09-16 Thread Spencer Parker
Has anyone here had any experience with WMI extensions in Python? I am trying to remotely change the IP, Subnet, and gateway of a windows machine, but I cannot figure out what it needs to change this. -- Spencer Parker ___ Tutor maillist - Tutor@pyth