Browse CLASSROOM TRAINING Find ONLINE TRAINING CONTACT us

SAPIEN Solutions

SAPIEN homepage
PrimalScript script editor+ide
PrimalScope script debugger
Free Tools script utilities
SAPIEN Press tech books
ScriptingAnswers.com learn+share
ScriptingOutpost.com online store
Blog.Sapien.com official blog
Contact Us

 

Welcome to the ScriptVault, where ScriptingAnswers.com users share their administrative scripts.

Have you written a script that accomplishes some administrative task? Please share it! Just navigate to the appropriate category and click the "Contribute to this category" link!

You are here: Top > Services

Contribute to this category


Sub-Categories

(no categories are available)

 

Scripts

Change Service Account I Contributed by Don Jones
As written, this looks for any service using the user "Bob" and changes them to use LocalSystem instead. Targets a single computer.
Change Service Account Contributed by Don Jones
As written, this looks for any service using the user "Bob" and changes them to use LocalSystem instead. Targets a single computer.
Change Service Password Contributed by Don Jones
This script uses a text file, listing one computer name per line, to connect to multiple computers (Win2000+). There's no logging of computers which are not reachable at the time. You'll need to modify the service being changed, and the new password of course.
Check for an Active Process Contributed by Eric Ekstrand
What I needed was a way to monitor a process so that when the process was done I would be notified about it, or the script would just stop processing. This is meant as a script snippet to be used with other scripts Any questions, email me at eric@xstrand.com
Disable a service Contributed by Douglas Rockney
Ask the user what service they want to set to Disabled. If nothing's entered, it simply exits. Otherwise, it either sets the service to Disabled or warns the user that the attempt failed. If the service is also found to be in a state other than "Stopped", it attempts to stop the service.
Disable Specified Service Contributed by Don Jones
The input text file is expected to be one computer name per line; modify the script to disable the service of your choice.
Enumerate Service Accounts Contributed by jhicks91
This VBScript uses ADSI to connect to remote systems and generate a csv file showing what services and the account they are running under. The script will process a text file of server names so you can build a csv file of all servers and find what services are running under what service accounts. Very helpful in audits or migration planning. Open the CSV file in Excel and use autofiltering to find the information you need.
Process and Service Scan Contributed by Bob Hillegas
Matches processes to running services and writes results to .csv file. An attempt at an inventory of running processes to screen for those that should not be running.
restart spooler service on server Contributed by Serge de klerk
This fairly simple script is one of the first scripts I've made while learning VBScript bit by bit. At work we normally had to use Remote Administrator to take over a server, log on to the server and manually restart the service. With this script you don't have to anymore. Just fill in the servername and de service will be restarted. YOu can use this script to restart other services too if you know the name of the service. I hope it will help anyone.
Update Services to use enw password Contributed by Don Jones
Service Updater is a VBScript written in WSF format, meaning it can be used as a command-line tool and supports /? functionality.
Use wmic to check services on remote computers. Contributed by Eric Ecklund
I work for a Fortune 500 company that has win servers all over the planet. Services on the servers is monitored with a SNMP tool that generates alerts on a service that may be stopped. You can use a WMI script to check the service, but we have found wmic to be a more flexible tool. No batch files, no vbs scripts, just straight command line. Open a cmd window, type wmic, press enter, and then drop your string in at the wmic prompt. Provided you have Admin permissions on the remote_server you will get a back a status of the service you are after.