I'm looking for a way to restart Windows services
- from batch scripts (preferrably CMD)
- on a remote machine
- using a different account than the one the script is running as
Looking at the parts that I already have in place, the missing bits are:
- runas does not provide a way to specify the password, so I can't call the remote machine with the appropriate account
- There seems to be no command line equivalent of the restart button in services.msc, so I would have to implement this myself by polling
Are there any standard solutions to these issues?