Hi All,

I am really weak at scripting and wanted to know if any1 could or has created a vbscript which lists all the services present on the machine (started as well in stopped state) and create a notepad file and copy all the data into that notepad file.

Need this ASAP. Would be really glad if i could get help on this. Thanks in advance

Cheers!!!!
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
Holy cow...

Google for the term "vbscript list services"
Answered 05/22/2009 by: VBScab
Red Belt

Please log in to comment
0
Ian, I was *this* close also...but thought the same thing, lol.
Answered 05/22/2009 by: jcarri06
Senior Purple Belt

Please log in to comment
0
I'll make it easy: scriptomatic
Answered 05/22/2009 by: aogilmor
Ninth Degree Black Belt

Please log in to comment
0
thanks for the ingenious reply VBSCAB but i have already tried that and all i was able to find and create myself was a way to list all services but was not able to create a new notepad file and copy the list in that. that is what i actually need.....
Answered 05/22/2009 by: mannse
Yellow Belt

Please log in to comment
0
So, in fact, you already have part of what you're looking for . What you want is a means to open Notepad and copy data into it. It's usually best to state your actual requirements, don't you find?

Now, I'm looking for a script to automatically add MSIs to an SCCM collection. All it needs to do is:

- open the MSI
- get the ProdsuctName, ProductCode, ProductVersion and PackageCode properties
- create a Software Distribution group based on the name of the MSI's parent folder
- create an SCCM package
- create an SCCM program
- add the package to the Distribution Points
- create an advertisement for the package
- create the collection

It looks simple enough, right? Do you know where I could find one?



HOLY FREAKIN' COW! Hint: you *may* have to do some of the work yourself!

- take the script which appeared in the first hit for that search
- do another search for scripts to start processes
- think a little. You know, longer than 3 seconds...
- combine the two

Actually, Notepad is a dreadful tool. Why not copy the list to the Clipboard? Then you can paste the content wherever you want. (Hint: use IE as a container - objIE.document.parentwindow.clipboardData.SetData "text", "the data to send to c/b")
Answered 05/23/2009 by: VBScab
Red Belt

Please log in to comment
0
OK, I'll make it reeeeeal easy: google.com
type scriptomatic download site:microsoft.com
hit enter.
Answered 05/26/2009 by: aogilmor
Ninth Degree Black Belt

Please log in to comment
0
Owen, it looks like you REEEEEEEEEEALY want to join me on my wall, because AFAICR, Scriptomatic won't automatically generate the entire code to copy data to Notepad, which is what the OP wants. Or someone to script it for him for free.
Answered 05/26/2009 by: VBScab
Red Belt

Please log in to comment
0
won't it though, if you choose plain text output? IIRC it opens a notepad document with the output inside it...couldn't be simpler.
Answered 05/26/2009 by: aogilmor
Ninth Degree Black Belt

Please log in to comment
Answer this question or Comment on this question for clarity