Changeset 102538 in vbox
- Timestamp:
- Dec 8, 2023 12:11:05 PM (15 months ago)
- svn:sync-xref-src-repo-rev:
- 160684
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/manual/en_US/man_VBoxManage-unattended.xml
r99513 r102538 60 60 <arg choice="req">--iso=<replaceable>install-iso</replaceable></arg> 61 61 <arg>--user=<replaceable>login</replaceable></arg> 62 <arg>--password=<replaceable>password</replaceable></arg> 62 <arg>--user-password=<replaceable>password</replaceable></arg> 63 <arg>--admin-password=<replaceable>password</replaceable></arg> 63 64 <arg>--password-file=<replaceable>file</replaceable></arg> 64 65 <arg>--full-user-name=<replaceable>name</replaceable></arg> … … 130 131 </varlistentry> 131 132 <varlistentry> 132 <term><option>--password=<replaceable>password</replaceable></option></term> 133 <listitem> 134 <para>The login password. This is used for the user given by <option>--user</option> as well as the 135 root/administrator user. (default: changeme)</para></listitem> 133 <term><option>--user-password=<replaceable>password</replaceable></option></term> 134 <listitem> 135 <para>The user login password. This is used for the user given by <option>--user</option> 136 (default: changeme)</para></listitem> 137 </varlistentry> 138 <varlistentry> 139 <term><option>--admin-password=<replaceable>password</replaceable></option></term> 140 <listitem> 141 <para>The admin / root login password. If not specified, the password from <option>--user-password</option> 142 will be used.</para></listitem> 136 143 </varlistentry> 137 144 <varlistentry> -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageMisc.cpp
r102536 r102538 2131 2131 * Parse options. 2132 2132 */ 2133 enum kUnattendedInstallOpt 2134 { 2135 kUnattendedInstallOpt_AdminPassword = 1000 2136 }; 2133 2137 static const RTGETOPTDEF s_aOptions[] = 2134 2138 { 2135 2139 { "--iso", 'i', RTGETOPT_REQ_STRING }, 2136 2140 { "--user", 'u', RTGETOPT_REQ_STRING }, 2137 { "--password", 'p', RTGETOPT_REQ_STRING }, /* Sets the user password. Keep for backwards compatibility! */ 2141 { "--password", 'p', RTGETOPT_REQ_STRING }, /* Keep for backwards compatibility! */ 2142 { "--user-password", 'p', RTGETOPT_REQ_STRING }, 2143 { "--admin-password", kUnattendedInstallOpt_AdminPassword, RTGETOPT_REQ_STRING }, 2138 2144 { "--full-user-name", 'U', RTGETOPT_REQ_STRING }, 2139 2145 { "--key", 'k', RTGETOPT_REQ_STRING }, … … 2193 2199 break; 2194 2200 2195 case 'p': // -- password2201 case 'p': // --[user-]password 2196 2202 CHECK_ERROR2_RET(hrc, ptrUnattended, COMSETTER(UserPassword)(Bstr(ValueUnion.psz).raw()), RTEXITCODE_FAILURE); 2203 break; 2204 2205 case kUnattendedInstallOpt_AdminPassword: // --admin-password 2206 CHECK_ERROR2_RET(hrc, ptrUnattended, COMSETTER(AdminPassword)(Bstr(ValueUnion.psz).raw()), RTEXITCODE_FAILURE); 2197 2207 break; 2198 2208 … … 2412 2422 SHOW_STR_ATTR(User, "user"); 2413 2423 SHOW_STR_ATTR(UserPassword, "password"); /* Keep for backwards compatibility! */ 2424 SHOW_STR_ATTR(UserPassword, "user-password"); 2425 SHOW_STR_ATTR(AdminPassword, "admin-password"); 2414 2426 SHOW_STR_ATTR(FullUserName, "fullUserName"); 2415 2427 SHOW_STR_ATTR(ProductKey, "productKey");
Note:
See TracChangeset
for help on using the changeset viewer.