1. Win+R and type this command
runas /user:[username] [command]
where [command] – is any Run command or path to program .exe file.
2. Enter password if the user has it.
3. Press Enter.
If you get this type of error
Logon failure: user account restriction. Possible reasons are blank passwords not allowed, logon hour restrictions, or a policy restriction has been enforced.
then you can try these steps:
1. Win+R -> “secpol.msc”
2. Go to Local Policies -> Security Options
3. Set to Disabled this policy:
Accounts: Limit local account use of blank passwords to console logon only
4. Run runas command again.