If you administer several Windows servers that aren't on a Domain, you've probably come across some dreaded permissions errors. I'm talking about ones like Hyper-V's You do not have the required permission to complete this task. Contact the administrator of the authorization policy for the computer 'RUDI-HV-TEST'....

In Hyper-V's case, of course, it could be one of many things, however the main task at hand is being able to set credentials for accessing remote machines, without having the annoying credential popup, or in the cases of somewhere where you can't set credentials via the interface (Hyper-V, again), adding a domain controller to the mix.

Here's a simple 1 liner you can run within an elevated command prompt to configure credentials for remote servers:

cmdkey /add:[SERVER] /user:[USERNAME] /pass

Once you've run that, you'll get a prompt for the password, and once entered, you're done! Have fun. Note that this command will work on both Workgroup clients and domain members, there is no distinction.

Note that, if you are having errors with Hyper-V (which can be numerous depending on your setup), feel free to give me a shout in comments. I've dealt with my fair share of nightmarish Hyper-V setups.