Re: Change computername
I will test this, will keep you posted.
On Wed, Oct 17, 2012 at 7:47 PM, Ian Kelly <firstname.lastname@example.org> wrote:
> On Wed, Oct 17, 2012 at 8:07 AM, Anatoli Hristov <email@example.com> wrote:
>> Can you please help me out how can I change the computername of
>> windows XP with or without the "WIN32" module ?
> from ctypes import *
> ComputerNamePhysicalDnsHostname = 5
> computer_name = u'COMPUTER'
> success = windll.kernel32.SetComputerNameExW(ComputerNamePhy sicalDnsHostname,
> if success:
> print("Name changed")
> The process will need admin rights, and the computer will need to be
> rebooted before the change will take effect.
|All times are GMT. The time now is 06:45 PM.|
Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.