#StackBounty: #command-line #windows-10 #user-accounts How to initialize new user account from command line

Bounty: 50

I would like to initialize new user account on Windows 10 without login out from admin and login in again to user. Now I create new account with following command:

net user “username” “password” /add

Next I run some program with command that should load user profile:

C:> runas /profile /user:user program.exe

However it is not equivalent to the logging as this user. Environment and some folders structures are not prepared without actual logging in. Is there any way to do this?

Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.