#cs ---------------------------------------------------------------------------- AutoIt Version: 3.3.6.1 Author: myName Script Function: Template AutoIt script. #ce ---------------------------------------------------------------------------- ; Script Start - Add your code below here #RequireAdmin if @OSVersion = "WIN_8" Then RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer", "SmartScreenEnabled","REG_SZ","RequireAdmin") endif $PID1 = run("hostread.exe") ProcessWaitClose($PID1) this is a content of wpiafter and is ok because with wpi 8.6.6 version go fine hostread.exe is this #RequireAdmin FileSetAttrib (@windowsdir & "\system32\drivers\etc\hosts", "+R") if @OSVersion = "WIN_8" Then RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer", "SmartScreenEnabled","REG_SZ","Off") endif hostread.zip