win32 wins settings
Toff
christophedeze at gmail.com
Sun Apr 12 10:01:57 EDT 2009
hello
I don't understand why this doesn't woks.
def setwins(self):
from win32com.client import GetObject
objWMIService = GetObject("winmgmts:
{impersonationLevel=impersonate}!\\\\.\\root\\cimv2")
colNicConfigs = objWMIService.ExecQuery ("SELECT * FROM
Win32_NetworkAdapterConfiguration WHERE IPEnabled = True")
for nic in colNicConfigs:
print nic.Description
nic.SetWINSServer('','')
it looks good
http://msdn.microsoft.com/en-us/library/aa393624(VS.85).aspx
someone got helps ?
thanks
More information about the Python-list
mailing list