VirtualBox

Changeset 92795 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Dec 7, 2021 10:58:10 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
148714
Message:

Unattended: Previous fix made reg.exe unhappy, it wants the /f option in a very specific place.

Location:
trunk/src/VBox/Main/UnattendedTemplates
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/UnattendedTemplates/win_nt6_unattended.xml

    r92793 r92795  
    130130                <RunAsynchronousCommand>
    131131                    <Order>1</Order>
    132                     <Path>reg.exe ADD /f HKLM\SYSTEM\Setup\LabConfig /v BypassCPUCheck /t REG_DWORD /d 1</Path>
     132                    <Path>reg.exe ADD HKLM\SYSTEM\Setup\LabConfig /v BypassCPUCheck /t REG_DWORD /d 1 /f</Path>
    133133                    <Description>Windows 11 disable CPU check</Description>
    134134                </RunAsynchronousCommand>
    135135                <RunAsynchronousCommand>
    136136                    <Order>2</Order>
    137                     <Path>reg.exe ADD /f HKLM\SYSTEM\Setup\LabConfig /v BypassRAMCheck /t REG_DWORD /d 1</Path>
     137                    <Path>reg.exe ADD HKLM\SYSTEM\Setup\LabConfig /v BypassRAMCheck /t REG_DWORD /d 1 /f</Path>
    138138                    <Description>Windows 11 disable RAM check</Description>
    139139                </RunAsynchronousCommand>
    140140                <RunAsynchronousCommand>
    141141                    <Order>3</Order>
    142                     <Path>reg.exe ADD /f HKLM\SYSTEM\Setup\LabConfig /v BypassSecureBootCheck /t REG_DWORD /d 1</Path>
     142                    <Path>reg.exe ADD HKLM\SYSTEM\Setup\LabConfig /v BypassSecureBootCheck /t REG_DWORD /d 1 /f</Path>
    143143                    <Description>Windows 11 disable Secure Boot check</Description>
    144144                </RunAsynchronousCommand>
    145145                <RunAsynchronousCommand>
    146146                    <Order>4</Order>
    147                     <Path>reg.exe ADD /f HKLM\SYSTEM\Setup\LabConfig /v BypassStorageCheck /t REG_DWORD /d 1</Path>
     147                    <Path>reg.exe ADD HKLM\SYSTEM\Setup\LabConfig /v BypassStorageCheck /t REG_DWORD /d 1 /f</Path>
    148148                    <Description>Windows 11 disable Storage check</Description>
    149149                </RunAsynchronousCommand>
    150150                <RunAsynchronousCommand>
    151151                    <Order>5</Order>
    152                     <Path>reg.exe ADD /f HKLM\SYSTEM\Setup\LabConfig /v BypassTPMCheck /t REG_DWORD /d 1</Path>
     152                    <Path>reg.exe ADD HKLM\SYSTEM\Setup\LabConfig /v BypassTPMCheck /t REG_DWORD /d 1 /f</Path>
    153153                    <Description>Windows 11 disable TPM check</Description>
    154154                </RunAsynchronousCommand>
     
    175175                <RunAsynchronousCommand>
    176176                    <Order>1</Order>
    177                     <Path>reg.exe ADD /f HKLM\SYSTEM\Setup\LabConfig /v BypassCPUCheck /t REG_DWORD /d 1</Path>
     177                    <Path>reg.exe ADD HKLM\SYSTEM\Setup\LabConfig /v BypassCPUCheck /t REG_DWORD /d 1 /f</Path>
    178178                    <Description>Windows 11 disable CPU check</Description>
    179179                </RunAsynchronousCommand>
    180180                <RunAsynchronousCommand>
    181181                    <Order>2</Order>
    182                     <Path>reg.exe ADD /f HKLM\SYSTEM\Setup\LabConfig /v BypassRAMCheck /t REG_DWORD /d 1</Path>
     182                    <Path>reg.exe ADD HKLM\SYSTEM\Setup\LabConfig /v BypassRAMCheck /t REG_DWORD /d 1 /f</Path>
    183183                    <Description>Windows 11 disable RAM check</Description>
    184184                </RunAsynchronousCommand>
    185185                <RunAsynchronousCommand>
    186186                    <Order>3</Order>
    187                     <Path>reg.exe ADD /f HKLM\SYSTEM\Setup\LabConfig /v BypassSecureBootCheck /t REG_DWORD /d 1</Path>
     187                    <Path>reg.exe ADD HKLM\SYSTEM\Setup\LabConfig /v BypassSecureBootCheck /t REG_DWORD /d 1 /f</Path>
    188188                    <Description>Windows 11 disable Secure Boot check</Description>
    189189                </RunAsynchronousCommand>
    190190                <RunAsynchronousCommand>
    191191                    <Order>4</Order>
    192                     <Path>reg.exe ADD /f HKLM\SYSTEM\Setup\LabConfig /v BypassStorageCheck /t REG_DWORD /d 1</Path>
     192                    <Path>reg.exe ADD HKLM\SYSTEM\Setup\LabConfig /v BypassStorageCheck /t REG_DWORD /d 1 /f</Path>
    193193                    <Description>Windows 11 disable Storage check</Description>
    194194                </RunAsynchronousCommand>
    195195                <RunAsynchronousCommand>
    196196                    <Order>5</Order>
    197                     <Path>reg.exe ADD /f HKLM\SYSTEM\Setup\LabConfig /v BypassTPMCheck /t REG_DWORD /d 1</Path>
     197                    <Path>reg.exe ADD HKLM\SYSTEM\Setup\LabConfig /v BypassTPMCheck /t REG_DWORD /d 1 /f</Path>
    198198                    <Description>Windows 11 disable TPM check</Description>
    199199                </RunAsynchronousCommand>
  • trunk/src/VBox/Main/UnattendedTemplates/win_postinstall.cmd

    r92793 r92795  
    126126
    127127rem Update the registry to autorun the service and make sure we've got autologon.
    128 echo *** Running: reg.exe ADD /f HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v NTConfiguration /d %SystemDrive%\Apps\vboxtxs.cmd >> %MY_LOG_FILE%
    129 reg.exe ADD /f HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v NTConfiguration /d %SystemDrive%\Apps\vboxtxs.cmd >> %MY_LOG_FILE% 2>&1
     128echo *** Running: reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v NTConfiguration /d %SystemDrive%\Apps\vboxtxs.cmd /f >> %MY_LOG_FILE%
     129reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v NTConfiguration /d %SystemDrive%\Apps\vboxtxs.cmd /f >> %MY_LOG_FILE% 2>&1
    130130echo *** ERRORLEVEL: %ERRORLEVEL% >> %MY_LOG_FILE%
    131131
    132 echo *** Running: reg.exe ADD /f "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v PowerdownAfterShutdown /d 1 >> %MY_LOG_FILE%
    133 reg.exe ADD /f "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v PowerdownAfterShutdown /d 1 >> %MY_LOG_FILE% 2>&1
     132echo *** Running: reg.exe ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v PowerdownAfterShutdown /d 1 /f >> %MY_LOG_FILE%
     133reg.exe ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v PowerdownAfterShutdown /d 1 /f >> %MY_LOG_FILE% 2>&1
    134134echo *** ERRORLEVEL: %ERRORLEVEL% >> %MY_LOG_FILE%
    135135
    136 echo *** Running: reg.exe ADD /f "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v ForceAutoLogon /d 1 >> %MY_LOG_FILE%
    137 reg.exe ADD /f "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v ForceAutoLogon /d 1 >> %MY_LOG_FILE% 2>&1
     136echo *** Running: reg.exe ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v ForceAutoLogon /d 1 /f >> %MY_LOG_FILE%
     137reg.exe ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v ForceAutoLogon /d 1 /f >> %MY_LOG_FILE% 2>&1
    138138echo *** ERRORLEVEL: %ERRORLEVEL% >> %MY_LOG_FILE%
    139139rem  AutoAdminLogon too if administrator?
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