📜 VBScript (WSH)

Disable Explorer Startup Delay (VBScript)

Removes the artificial delay before startup apps launch. Applies the tweak via WScript.Shell.RegWrite.

By WindowsScripting.com · 718 B
SetDisableStartupDelay.vbs
' ============================================================
' SetDisableStartupDelay.vbs
'
' Disable Explorer Startup Delay.
' Removes the artificial delay before startup apps launch.
'
' Usage: cscript SetDisableStartupDelay.vbs
' ============================================================

Option Explicit

Dim objShell
Set objShell = CreateObject("WScript.Shell")

On Error Resume Next
objShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Serialize\StartupDelayInMSec", 0, "REG_DWORD"

If Err.Number = 0 Then
    WScript.Echo "Disable Explorer Startup Delay applied."
Else
    WScript.Echo "Failed to apply tweak (Error " & Err.Number & ": " & Err.Description & ")"
End If
On Error Goto 0