Fixes #5340: correct user management technique on windows

Same here.