Awesome. After installing ArcGIS 10.4 i faced a similar problem and the tweak worked after setting "PYTHOPATH" environment variable
"""from sys import exitimport time, win32api, win32con, win32servicewa, wc, ws = win32api, win32con, win32serviceimport WServiceiis = WService.WService("IIS Admin")iis.fetchstatus("stopped")print "IIS Stopped"class WService: """ The WService Class is used for controlling WinNT, Win2k & WinXP like services. Just pass the name of the service you wish to control to the class instance and go from there. For example, if you want to control the Workstation service try this: import WService workstation = WService.WService("Workstation") workstation.start() workstation.fetchstatus("running", 10) workstation.stop() workstation.fetchstatus("stopped")
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.