VirtualBox

Ignore:
Timestamp:
Jul 31, 2017 8:55:16 AM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
117280
Message:

VBoxManage/unatteded: Added --password-file option to install.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageMisc.cpp

    r68153 r68187  
    13871387        { "--iso",                              'i', RTGETOPT_REQ_STRING },
    13881388        { "--user",                             'u', RTGETOPT_REQ_STRING },
    1389         { "--password",                         'p', RTGETOPT_REQ_STRING }, /** @todo password file ++ */
     1389        { "--password",                         'p', RTGETOPT_REQ_STRING },
     1390        { "--password-file",                    'X', RTGETOPT_REQ_STRING },
    13901391        { "--full-user-name",                   'U', RTGETOPT_REQ_STRING },
    13911392        { "--key",                              'k', RTGETOPT_REQ_STRING },
     
    14461447                break;
    14471448
     1449            case 'X':   // --password-file
     1450            {
     1451                Utf8Str strPassword;
     1452                RTEXITCODE rcExit = readPasswordFile(ValueUnion.psz, &strPassword);
     1453                if (rcExit != RTEXITCODE_SUCCESS)
     1454                    return rcExit;
     1455                CHECK_ERROR2_RET(hrc, ptrUnattended, COMSETTER(Password)(Bstr(strPassword).raw()), RTEXITCODE_FAILURE);
     1456                break;
     1457            }
     1458
    14481459            case 'U':   // --full-user-name
    14491460                CHECK_ERROR2_RET(hrc, ptrUnattended, COMSETTER(FullUserName)(Bstr(ValueUnion.psz).raw()), RTEXITCODE_FAILURE);
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette