RSS Feeds | Remove a Service |
|
|
|
| Written by Cheyenne Harden | ||||||
|
I had to remove an application from a server the other day. After the uninstall the application left some of the services behind. The script below will remove the service from the services.msc console. ----------COPY EVERYTHING BELOW THIS LINE----------
strComputer = "." Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") For Each objService in colListOfServices Else End If Wscript.Echo strService & "Removed"
PLEASE MAKE SURE NO WORD WRAPPING IS HAPPENING IN YOUR SCRIPT!!! To make this script work you will need one things!
Powered by !JoomlaComment 3.26
3.26 Copyright (C) 2008 Compojoom.com / Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved." |
||||||
| < Prev | Next > |
|---|
















