[python-win32] rename computer

Tim Golden mail at timgolden.me.uk
Mon Dec 19 16:06:37 CET 2011


On 19/12/2011 14:32, Tim Golden wrote:
> <code>
> import wmi
>
> c = wmi.WMI ()
> for system in c.Win32_ComputerSystem ():
> system.Rename ("NEW-NAME", "TIM", "PASSWORD")
>
> </code>

For the record, the OP reported in private email
that this solution works for him.

TJG


More information about the python-win32 mailing list