Fixes #5340: correct user management technique on windows

same answer here