Pages

Showing posts with label vbscript to stop service. Show all posts
Showing posts with label vbscript to stop service. Show all posts

Thursday, 21 June 2012

Stop & Delete Service - VBScript


Option Explicit


On Error Resume Next


Dim objWshShell


Set objWshShell = CreateObject("WScript.Shell")


objWshShell.Run "sc stop ServiceName",0,true
objWshShell.Run "sc delete  ServiceName ",0,true


Set objWshShell = Nothing