Hi all, I wanted to add users to a local group via a login script but the command requires me to perform the "runas" command. Is there anyway I can input the administrator password automatically so the command would run without the end user typing in the password.
runas /user:administrator net localgroup administrators Domain\account /add
runas /user:administrator net localgroup administrators Domain\account /add