Use o utilitário interno cmdkey
para adicionar as credenciais.
Faça o download e use o utilitário Microsoft Sysinternals PsExec: psexec -s
para executar um cmdkey
como SYSTEM. Tecnicamente, é a Microsoft, portanto não é de terceiros.
CMDKEY.exe Create, list or delete stored user names, passwords or credentials.
Syntax
cmdkey [{/add:TargetName|/generic:TargetName}]
{/smartcard|/user:UserName [/pass:Password]}
[/delete{:TargetName|/ras}]
/list:TargetName
Examples:
Display a list of stored user names and credentials:
cmdkey /list
Add a generic TERMSRV credential for user PeteZ (on domain dom64) to access the computer Server64:
cmdkey /generic:TERMSRV/Server64 /user:dom64\PeteZ /pass:p4g67hjyy23
Delete the stored TERMSRV credential for Server64:
cmdkey /delete TERMSRV/Server64
Add a user name and password for user Kate to access computer Server64 with the password z5rd63hGtjH7:
cmdkey /add:server64 /user:Kate /pass:z5rd63hGtjH7
Add a user name for user Kate to access computer Server64 and prompt for a password whenever Server64 is accessed:
cmdkey /add:server64 /user:Kate
Delete the stored credential for Server64:
cmdkey /delete:Server64