I recently started experimenting with python on system automation. Here is a code i tried to run for stopping services but i got the error pywintypes.error: (5, 'OpenSCManager', 'Access is denied.'). i went through some online blogs and suggestion, however i dont seem to get the gist of it. Do we need to run it with Elevated access? if so how do we go ahead?
import os
import win32serviceutil
service = "Windows Update"
win32serviceutil.StopService(service)
Thank You all, in advance.