I'm on Linux and the simplest solution I found was to use the browser to generate a claim code on plex.tv and then install that code in the server via curl.
Word of warning. Resetting your password is causing lots of people to lose access to their server. I'll be deleting config and reclaiming the server after work.
You don't just pick out the m&ms and raisens while leaving the peanuts and other crap for someone else?