EN
Español
English
Português
    Windows 10 Update

    Create scripts

    The following scripts must be created

    Update.bat

    @ECHO OFF
    
    powershell Set-ExecutionPolicy -ExecutionPolicy unrestricted -scope CurrentUser -force
    powershell Set-ExecutionPolicy -ExecutionPolicy unrestricted -force
    powershell -file "update.ps1"
    
    powershell Set-ExecutionPolicy -ExecutionPolicy restricted -force
    powershell Set-ExecutionPolicy -ExecutionPolicy restricted -scope CurrentUser -force
    

    Update.ps1

    $ErrorActionPreference = "SilentlyContinue"
    
    # Prevenir PC no se suspenda
    
    powercfg.exe -x -monitor-timeout-ac 0
    powercfg.exe -x -monitor-timeout-dc 0
    powercfg.exe -x -disk-timeout-ac 0
    powercfg.exe -x -disk-timeout-dc 0
    powercfg.exe -x -standby-timeout-ac 0
    powercfg.exe -x -standby-timeout-dc 0
    powercfg.exe -x -hibernate-timeout-ac 0
    powercfg.exe -x -hibernate-timeout-dc 0
    
    
    # crea una carpeta para los archivos
    $d = "c:\win10exe"
    mkdir -p $d
    
    # descarga la utilidad de actualización
    $ComObj = New-Object System.Net.WebClient
    $exedl = "https://go.microsoft.com/fwlink/?LinkID=799445"
    $exe = "$($d)\Win10Upgrade.exe"
    $ComObj.DownloadFile($exedl,$exe)
    
    # ejecuta el programa
    Start-Process -FilePath $exe -ArgumentList "/skipeula /auto upgrade /dynamicupdate enable /copylogs /norestart $d"
    
    

    Once these two files are created, the packages must be created View Packages

    A distribution is then made for these two packages See Software Distribution