He dislikes having to punish his servants.
Hello, Symphony, and Happy New Year!
I agree with everything that Gustavo has said above. I just thought that, in case you had any trouble understanding the main point, it might help you to look at the following related sentence, which is not intended as a perfect paraphrase:
- He wishes he didn't have to punish his servants.