Nota
El acceso a esta página requiere autorización. Puede intentar iniciar sesión o cambiar directorios.
El acceso a esta página requiere autorización. Puede intentar cambiar los directorios.
Puede configurar el sistema operativo de validación para ejecutar automáticamente los comandos cada vez que se inicia.
Creación y configuración del script de inicio
Use los scripts siguientes para configurar aplicaciones y comandos que se ejecutarán cuando se inicie el sistema operativo de validación. Para usar los scripts, coloque los comandos después de la línea que indica REM ADD COMMANDS AFTER THIS LINE
. Una vez que haya agregado los comandos para que se ejecuten en el arranque, ejecute el script para montar la imagen y configurar el proceso de inicio.
dism /Mount-wim /wimfile:C:\[WIMFILELOCATION]\WinVOS.wim /index:1 /mountdir:C:\OFFLINE
New-Item "C:\OFFLINE\windows\System32\startnet.valos.cmd" -Force -ItemType File -Value "@ECHO OFF
reg query `"HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon`" /v VOSStartupSetup > nul 2> nul
SET StartupSetup=%ERRORLEVEL%
IF %StartupSetup%==1 (
::Add commands that will run once in the lifetime of the OS after this line
[INSERT COMMANDS OR REMOVE THIS]
::Don't change the next line
reg add `"HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon`" /v VOSStartupSetup /t REG_DWORD /F /D 1 > nul
)
IF NOT DEFINED StartupRun (
::Add commands that will run once after booting the OS after this line
[INSERT COMMANDS OR REMOVE THIS]
::Don't change the next line
SET StartupRun=1
)"
reg load HKLM\Image_SOFTWARE C:\OFFLINE\windows\system32\config\software
reg add "HKLM\Image_SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v Shell /t REG_SZ /F /D "cmd /k c:\windows\System32\startnet.valos.cmd"
reg unload HKLM\Image_SOFTWARE
dism /Unmount-Image /MountDir:C:\OFFLINE /commit
dism /Mount-wim /wimfile:C:\[WIMFILELOCATION]\WinVOS.wim /index:1 /mountdir:C:\temp\script
ECHO @ECHO OFF> C:\temp\script\windows\System32\startnet.valos.cmd
ECHO reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v VOSStartupSetup ^> nul 2^> nul>> C:\temp\script\windows\System32\startnet.valos.cmd
ECHO SET StartupSetup=^%ERRORLEVEL^%>> C:\OFFLINE\windows\System32\startnet.valos.cmd
ECHO IF ^%StartupSetup^%==1 (>> C:\OFFLINE\windows\System32\startnet.valos.cmd
ECHO ::Add commands that will run once in the lifetime of the OS after this line>> C:\OFFLINE\windows\System32\startnet.valos.cmd
ECHO echo HAPPENING ONCE PER LIFETIME>> C:\OFFLINE\windows\System32\startnet.valos.cmd
ECHO ::Don't change the next line>> C:\OFFLINE\windows\System32\startnet.valos.cmd
ECHO reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v VOSStartupSetup /t REG_DWORD /F /D 1 ^> nul>> C:\OFFLINE\windows\System32\startnet.valos.cmd
ECHO )>> C:\OFFLINE\windows\System32\startnet.valos.cmd
ECHO IF NOT DEFINED StartupRun (>> C:\OFFLINE\windows\System32\startnet.valos.cmd
ECHO ::Add commands that will run once after booting the OS after this line>> C:\OFFLINE\windows\System32\startnet.valos.cmd
ECHO echo HAPPENING ONCE AFTER BOOT>> C:\OFFLINE\windows\System32\startnet.valos.cmd
ECHO ::Don't change the next line>> C:\OFFLINE\windows\System32\startnet.valos.cmd
ECHO SET StartupRun=1 >> C:\OFFLINE\windows\System32\startnet.valos.cmd
ECHO )>> C:\OFFLINE\windows\System32\startnet.valos.cmd
reg load HKLM\Image_SOFTWARE C:\OFFLINE\windows\system32\config\software
reg add "HKLM\Image_SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v Shell /t REG_SZ /F /D "cmd /k c:\windows\System32\startnet.valos.cmd"
reg unload HKLM\Image_SOFTWARE
dism /Unmount-Image /MountDir:C:\OFFLINE /commit