/build/static/layout/Breadcrumb_cap_w.png

vbscripts to copy the name of services present on machine into a notepad file

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

Answers (8)

Posted by: anonymous_9363 15 years ago
Red Belt
0
Holy cow...

Google for the term "vbscript list services"
Posted by: jcarri06 15 years ago
Senior Purple Belt
0
Ian, I was *this* close also...but thought the same thing, lol.
Posted by: aogilmor 15 years ago
9th Degree Black Belt
0
I'll make it easy: scriptomatic
Posted by: mannse 15 years ago
Yellow Belt
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.....
Posted by: anonymous_9363 15 years ago
Red Belt
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")
Posted by: aogilmor 15 years ago
9th Degree Black Belt
0
OK, I'll make it reeeeeal easy: google.com
type scriptomatic download site:microsoft.com
hit enter.
Posted by: anonymous_9363 15 years ago
Red Belt
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.
Posted by: aogilmor 15 years ago
9th Degree Black Belt
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.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ