Run As Domain Account While not on a Domain Machine

Tags: runas, domain, account, undomained machine.

runas /netonly /user:domain\user command

source: https://superuser.com/questions/171411/use-runas-with-a-domain-account-on-a-non-domain-machine-in-windows-2k-xp-vista-7

1 Comment

  • verasearch3 said Reply

    use commandline: cmdkey /?

    Creates, displays, and deletes stored user names and passwords.
    The syntax of this command is:
    CMDKEY [{/add | /generic}:targetname {/smartcard | /user:username {/pass{:password}}} | /delete{:targetname | /ras} | /list{:targetname}]

    Examples:
    To list available credentials:
    cmdkey /list
    cmdkey /list:targetname

    To create domain credentials:
    cmdkey /add:targetname /user:username /pass:password
    cmdkey /add:targetname /user:username /pass
    cmdkey /add:targetname /user:username
    cmdkey /add:targetname /smartcard

    Full Example: cmdkey /add:<servername.something.com:1433> /user:<domain\username> /pass:<password>

You must log on to comment.