'How to start stop windows service without admin rights prompt in Python?

I have tried various solutions given in the links below to start, stop Windows Service (rabbitmq) in a PyTest without any admin rights prompt (so it can run continuously in a build server):

  1. os.system method --> The PyTest terminal asks for administrator password
  2. subprocess.run method --> I got Access Denied error message

Is it possible to start stop Windows service in the Pytest bypassing the admin rights? If yes, how can I do it?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source