How to create user profile using the command line?

Simple stuff, you’d think as well as why would I need to do so? I just had one of these situations few minutes ago, when this way of creating user profiles comes in hand.

So … remote user that connects via VPN. His domain account user profile does not exists on the PC, but he can login as local user, connect to VPN and share screen via VNC (or any other similar tool), but when trying to switch user, wireless connection drops out … and no LAN connection available.

Run CMD as Admin

type runas /env /profile /user:<domain>\<username> cmd.exe

Leave a Reply