Fixes #5889: make services management work on windows