[python-win32] rename computer

2011-12-19 Thread cd
hello I didn't find any example of howto rename a windows computer with python ? i've tried with wmi unsuccessfully thanks for any halps Christophe ___ python-win32 mailing list python-win32@python.org

Re: [python-win32] rename computer

2011-12-19 Thread cd
thanks it works but I prefere to use a builtin system call or somethings like this, in order to avoid invalid hostname. I hope wmi can valid hostname for me Message du 19/12/11 14:31 De : Scott Leerssen A : cd Copie à : Objet : Re: [python-win32] rename computer On Dec 19

Re: [python-win32] rename computer

2011-12-19 Thread cd
On 19/12/2011 11:57, cd wrote: hello I didn't find any example of howto rename a windows computer with python ? i've tried with wmi unsuccessfully What did you try with WMI, and what happened? TJG ___ python-win32 mailing list python

Re: [python-win32] rename computer

2011-12-19 Thread cd
thanks genius it works !! Message du 19/12/11 15:34 De : Tim Golden A : python-win32@python.org Copie à : Objet : Re: [python-win32] rename computer On 19/12/2011 14:20, cd wrote: import wmi c = wmi.WMI().Win32_ComputerSystem computer = c()[0] for propertyName in sorted( list