I am trying to open a cmd prompt to "run as administrator", in order to stop a service using net stop.
however nothing seems to be working, i have tried the following,
import os
import subprocess
subprocess.Popen(['runas', '/user:Administrator', '', 'cmd.exe', 'net stop "Cisco AnyConnect Secure Mobility Agent"'])
please can someone help with this