Set WshNetwork = WScript.CreateObject("WScript.Network")
Set objComputer = GetObject("WinNT://" & WshNetwork.ComputerName & ",computer")
Set objService = objComputer.GetObject("service", "clisvc")
If objService.Status = 4 Then
objService.Stop
End If
Wscript.Sleep 'some time here
objService.Start
Set objService = Nothing
Set objComputer = Nothing
Set WshNetwork = Nothing
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.