runas when user has no password

Microsoft Windows
Post Reply
justjason
Posts: 5
Joined: 2021-Nov-12, 5:22 pm

runas when user has no password

Post by justjason »

Is there a way to execute the runas command ( from a current admin account ) on an account that has no defined password.
Runas asks for the account password, and if left black, the command fails with

Code: Select all

RUNAS ERROR: Unable to acquire user password
In a similar fashion , ssh in to such an account ? same issue
Pranav
Posts: 4
Joined: 2023-Nov-30, 9:14 am
Contact:

Re: runas when user has no password

Post by Pranav »

justjason wrote: 2023-Dec-15, 11:21 am Is there a way to execute the runas command ( from a current admin account ) on an account that has no defined password.
Runas asks for the account password, and if left black, the command fails with

Code: Select all

RUNAS ERROR: Unable to acquire user password
In a similar fashion , ssh in to such an account ? same issue
Executing the "runas" command on an account with no defined password is difficult since leaving the password blank causes the command to fail. Consider creating a password for the account to ensure proper execution.
Post Reply