Having tested eRoom under different conditions and scenarios, I have found it to be a laborious task to manually stop and start services throughout any procedure as there are at most nine services. So, I created a couple of scripts using AutoIT to stop and start all services that eRoom uses. Using these scripts have saved me quite a bit of time.
This is an AutoIT script to start all eRoom related services.
One Method
; eRoom Server services
RunWait (@ComSpec & " /c " & "net start ERNotifier","", @SW_HIDE)
RunWait (@ComSpec & " /c " & "net start ERDiagnostics","", @SW_HIDE)
RunWait (@ComSpec & " /c " & "net start ERSiteMessager","", @SW_HIDE)
; eRoom Indexing services
RunWait (@ComSpec & " /c " & "net start Hummingbird Connector","", @SW_HIDE)
RunWait (@ComSpec & " /c " & "net start Hummingbird STR Service","", @SW_HIDE)
RunWait (@ComSpec & " /c " & "net start Hummingbird Connector Manager","", @SW_HIDE)
; Internet Information Server services
RunWait (@ComSpec & " /c " & "net start W3SVC","", @SW_HIDE)
RunWait (@ComSpec & " /c " & "net start HTTPFilter","", @SW_HIDE)
RunWait (@ComSpec & " /c " & "net start IISADMIN","", @SW_HIDE)
This is an AutoIT script to stop all eRoom related services.
; Stop eRoom Server services
RunWait (@ComSpec & " /c " & "net stop ERNotifier","", @SW_HIDE)
RunWait (@ComSpec & " /c " & "net stop ERDiagnostics","", @SW_HIDE)
RunWait (@ComSpec & " /c " & "net stop ERSiteMessager","", @SW_HIDE)
; Stop eRoom Indexing services
RunWait (@ComSpec & " /c " & "net stop Hummingbird Connector","", @SW_HIDE)
RunWait (@ComSpec & " /c " & "net stop Hummingbird STR Service","", @SW_HIDE)
RunWait (@ComSpec & " /c " & "net stop Hummingbird Connector Manager","", @SW_HIDE)
; Stop Internet Information Server services
RunWait (@ComSpec & " /c " & "net stop W3SVC","", @SW_HIDE)
RunWait (@ComSpec & " /c " & "net stop HTTPFilter","", @SW_HIDE)
RunWait (@ComSpec & " /c " & "net stop IISADMIN","", @SW_HIDE)
Pure AutoIT Method
Stop ( you can use _Service_Start for start)
#include <ServiceControl.au3>
; Stop eRoom Server services
_Service_Stop("", "ERNotifier")
_Service_Stop("", "ERDiagnostics")
_Service_Stop("", "ERSiteMessager")
; Stop eRoom Indexing services
_Service_Stop("", "Hummingbird Connector")
_Service_Stop("", "Hummingbird STR Service")
_Service_Stop("", "Hummingbird Connector Manager")
; Stop Internet Information Server services
_Service_Stop("", "W3SVC")
_Service_Stop("", "HTTPFilter")
_Service_Stop("", "IISADMIN")
AutoIT Looped
Stop ( you can use _Service_Start for start)
#include <ServiceControl.au3>
Local $aServices[] = ["ERNotifier", "ERDiagnostics", "ERSiteMessager", _
"Hummingbird Connector", "Hummingbird STR Service", _
"Hummingbird Connector Manager", "W3SVC", "HTTPFilter", "IISADMIN"]
For $sService In $aServices
If Not _Service_Stop("", $sService) Then
ConsoleWrite("Failed to stop: " & $sService & @CRLF)
EndIf
Next