Fixes #5938: Make services management compatible with Windows - branch 3.0