Not been able to find a way to programatically add User Profiles to a server (Server 2012). I've already created a process that adds User Accounts to the domain programatically... but from what I can find their doesn't seem to be a way to then take these new user accounts and add them as profiles to a selected server itself... (i.e. logging into the server for the first time with the user account to create the profile within that server)
I know Administrators must have some sort of automated process to do this... imagine having to add hundreds of user profiles manually every time you get a new server!!
If at all possible I would prefer to complete this in C#, but if anyone could point me in the right direction in any language I would greatly appreciate it.
Additional Note: To further clarify... I actually need to create the user profile because after the profile has been created I can then modify Environment Tab Settings i.e. Starting Program: "Start the Following Program at Logon"
If I set these settings before I create the desktop location it will error on new user login and not create the profile in my experience. So the only order that I have know to work is 1st logon, then add the Starting Program settings, and lastly go to the account tab and check "User must change password at next logon". If anyone knows of an alternative way to do this that would be great as well.