Windows Operations¶
The windows module handles misc windows operations.
windows.service
¶
Stop/Start a Windows service.
windows.service(name, running=True, restart=False, suspend=False)
- name: name of the service to manage
- running: whether the the service should be running or stopped
- restart: whether the the service should be restarted
- suspend: whether the the service should be suspended
Example:
windows.service(
{'Stop the spooler service'},
'service',
running=False,
)