I have spent quite a bit of time googling to try and figure this out and can't seem to find an answer. I am involved in a Terminal Server rebuild project where we need to create local user profiles for 75 different users. We are hoping to avoid having to login as every single user and then logging off. Is this something PowerShell can handle? We have a list of all their usernames and credentials.
Why would you be logging in to create RDS local profiles? At worst I would expect you to have a properly configured default profile or group policy preferences configured to set up the user's session properly.
I think it would be easier to copy the profiles onto a file server and configure the Remote Desktop profile path for each user or via GPO. Once you have roaming profiles configured Windows will copy down the profile automatically.
Another alternative would be to introduce Microsoft UE-V in the old environment before the rebuild. UE-V will save the settings you've selected onto the users home drive.
P.S. Local profiles on terminal servers are never a good idea. Roaming profiles can become very large and the last log off wins. Would be better to use UE-V or another product to only roam settings.