NT service (setting Description string)

Tim Golden tim.golden at viacom-outdoor.co.uk
Thu Mar 4 10:57:15 EST 2004


>> <screendump>
>>
>> ActivePython 2.2.3 Build 227 (ActiveState Corp.) based on
>> Python 2.2.3 (#42, Nov 13 2003, 09:57:55) [MSC 32 bit 
>(Intel)] on win32
>> Type "help", "copyright", "credits" or "license" for more 
>information.
>> >>> import wmi
>> >>> c = wmi.WMI ()
>> >>> for service in c.Win32_Service (Name="dnscache"): print 
>service.Name,
>> service.DisplayName
>> ...
>> Dnscache DNS Client
>> >>> service.Change (DisplayName="New DNS Client")
>> (<win32com.gen_py.Microsoft WMI Scripting V1.1 Library.ISWbemProperty
>> instance at 0x13968496>,)
>> >>> for service in c.Win32_Service (Name="dnscache"): print 
>service.Name,
>> service.DisplayName
>> ...
>> Dnscache New DNS Client
>> >>>
>>
>> </screendump>
>>
>> TJG
>>
>> 

>Where to get modules for WMT?
>

(Assuming you're referring to WMI, as above):
http://tgolden.sc.sabren.com/python/wmi.html

TJG

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________




More information about the Python-list mailing list