Re: listing existing windows services with python

2010-02-17 Thread Tim Golden
On 16/02/2010 13:51, Alf P. Steinbach wrote: It doesn't seem to provide ordinary Windows "service"s, but it's a bit unclear since e.g. the URL above says [... snip ...] Well the useful info in there appears to come from: http://msdn.microsoft.com/en-us/library/aa392783%28VS.85%29.aspx Look

Re: listing existing windows services with python

2010-02-17 Thread News123
Hi David, Thanks a lot. As I have pywin32 already installed this is probbaly the way to go. Meanwhile I implemented already a small module, which is parsing sc.exe's output, but probably 'll change it as my implementation is a little clumsy. bye N David Bolen wrote: > alex23 writes: > >>

Re: listing existing windows services with python

2010-02-16 Thread David Bolen
alex23 writes: > News123 wrote: >> What is the best way with python to get a list of all windows services. >> >> As a start I would be glad to receive only the service names. >> >> However it would be nicer if I could get all the properties of a service >> as well. > > I highly recommend Tim Gol

Re: listing existing windows services with python

2010-02-16 Thread Alf P. Steinbach
* Steve Holden: Alf P. Steinbach wrote: [...] I'll do some further research to see what's going on there. Cheers, - Alf (is this off-topic for the group?) It's gone a lot further off than this without anyone complaining. I think your experiences to date should convince you that you can rely

Re: listing existing windows services with python

2010-02-16 Thread Steve Holden
Alf P. Steinbach wrote: [...] >> I'll do some further research to see what's going on there. > > Cheers, > > - Alf (is this off-topic for the group?) It's gone a lot further off than this without anyone complaining. I think your experiences to date should convince you that you can rely on being

Re: listing existing windows services with python

2010-02-16 Thread sstein...@gmail.com
On Feb 16, 2010, at 4:04 AM, Ben Finney wrote: > Please, don't send the above kind of vitriol to this public forum. > Better yet, compose it in your editor, bask in what you've written, then > delete it unsent. +1 If you kids want to have some sort of pissing-in-your-sockpuppet type of contest

Re: listing existing windows services with python

2010-02-16 Thread Martin P. Hellwig
On 02/16/10 13:51, Alf P. Steinbach wrote: - Alf (is this off-topic for the group?) Strictly speaking yes, but I do find it interesting and there is nothing wrong with ignoring posts you don't like to read. -- mph -- http://mail.python.org/mailman/listinfo/python-list

Re: listing existing windows services with python

2010-02-16 Thread Alf P. Steinbach
* Tim Golden: On 16/02/2010 12:48, Alf P. Steinbach wrote: I just googled the filename from memory, found http://www.neuber.com/taskmanager/process/wmiprvse.exe.html> Don't know if I've disabled it because invoking wmic didn't produce it. Uh, wait, since it hosts the provider service(s),

Re: listing existing windows services with python

2010-02-16 Thread Tim Golden
On 16/02/2010 12:48, Alf P. Steinbach wrote: I just googled the filename from memory, found http://www.neuber.com/taskmanager/process/wmiprvse.exe.html> Don't know if I've disabled it because invoking wmic didn't produce it. Uh, wait, since it hosts the provider service(s), perhaps... Yes

Re: listing existing windows services with python

2010-02-16 Thread Alf P. Steinbach
* Tim Golden: On 16/02/2010 12:18, News123 wrote: I don't use the script often, so if it would start a WMI service during runtime and stop it afterwards it would be fine. FWIW -- your other considerations notwithstanding -- I'm not aware of WMI having this effect. Generally you can assume that

Re: listing existing windows services with python

2010-02-16 Thread Tim Golden
On 16/02/2010 12:18, News123 wrote: I don't use the script often, so if it would start a WMI service during runtime and stop it afterwards it would be fine. FWIW -- your other considerations notwithstanding -- I'm not aware of WMI having this effect. Generally you can assume that the WMI servic

Re: listing existing windows services with python

2010-02-16 Thread News123
Thanks for your answers, The security wouldn't be a concern, as I would run while being only accessible by trusted hosts. I don't use the script often, so if it would start a WMI service during runtime and stop it afterwards it would be fine. I just wonder whether installing another 3rd party

Re: listing existing windows services with python

2010-02-16 Thread Ben Finney
alex23 writes: > Yes, because that's _actually helping people_ and not just > contributing the usual self-serving pontificating nonsense that just > _flows_ from your goddamn mouth like a river of effluent psuedotruths. I can't see what improvement you hope to achieve by sending something like t

Re: listing existing windows services with python

2010-02-16 Thread Alf P. Steinbach
* alex23: "Alf P. Steinbach" wrote: it's great that you provide the kind of help that you did, pointing out a probably very good module that it seems gives the required functionality, and giving an URL. Yes, because that's _actually helping people_ and not just contributing the usual self-ser

Re: listing existing windows services with python

2010-02-16 Thread alex23
"Alf P. Steinbach" wrote: > it's great that you provide the kind > of help that you did, pointing out a probably very good module that it seems > gives the required functionality, and giving an URL. Yes, because that's _actually helping people_ and not just contributing the usual self-serving pon

Re: listing existing windows services with python

2010-02-15 Thread Alf P. Steinbach
* alex23: On Feb 16, 1:28 pm, "Alf P. Steinbach" wrote: It's probably Very Good, but one Microsoft-thing one should be aware of: using WMI functionality generally starts up a background WMI service... "Probably"? That means that since you say it's fantastic, it's probably very good. "Proba

Re: listing existing windows services with python

2010-02-15 Thread alex23
On Feb 16, 1:28 pm, "Alf P. Steinbach" wrote: > It's probably Very Good, but one Microsoft-thing one should be aware of: using > WMI functionality generally starts up a background WMI service... "Probably"? You haven't even used the module but you felt the need to contribute anyway? And I see tha

Re: listing existing windows services with python

2010-02-15 Thread Brian Curtin
On Mon, Feb 15, 2010 at 18:17, Alf P. Steinbach wrote: > * News123: > > Hi, >> >> >> What is the best way with python to get a list of all windows services. >> >> As a start I would be glad to receive only the service names. >> >> However it would be nicer if I could get all the properties of a

Re: listing existing windows services with python

2010-02-15 Thread Alf P. Steinbach
* alex23: News123 wrote: What is the best way with python to get a list of all windows services. As a start I would be glad to receive only the service names. However it would be nicer if I could get all the properties of a service as well. I highly recommend Tim Golden's fantastic WMI modu

Re: listing existing windows services with python

2010-02-15 Thread alex23
News123 wrote: > What is the best way with python to get a list of all windows services. > > As a start I would be glad to receive only the service names. > > However it would be nicer if I could get all the properties of a service > as well. I highly recommend Tim Golden's fantastic WMI module[1

Re: listing existing windows services with python

2010-02-15 Thread Alf P. Steinbach
* News123: Hi, What is the best way with python to get a list of all windows services. As a start I would be glad to receive only the service names. However it would be nicer if I could get all the properties of a service as well. Thanks for any info and bye * Library: If there is some

listing existing windows services with python

2010-02-15 Thread News123
Hi, What is the best way with python to get a list of all windows services. As a start I would be glad to receive only the service names. However it would be nicer if I could get all the properties of a service as well. Thanks for any info and bye N -- http://mail.python.org/mailman/listinf