DesktopECHO / Pi-Hole-for-WSL1

Ad-blocking DNS server for Windows • Unbound pre-configured • Deployment ready in minutes • Does not require hypervisor/docker
359 stars 54 forks source link

Scheduled task commented out? #112

Closed solarplex closed 9 months ago

solarplex commented 9 months ago
SET STTR="%PRGF%\Pi-hole Launcher.cmd"
ECHO.&SCHTASKS /CREATE /RU "%WAI%" /RL HIGHEST /SC ONSTART /TN "Pi-hole for Windows" /TR '%STTR%' /F
ECHO.&ECHO.  *NOTE* Additional configuration steps are required if you want
ECHO.         Pi-hole to run automatically at Windows start-up.

To

SET STTR="%PRGF%\Pi-hole Launcher.cmd"
SCHTASKS /CREATE /RU "%WAI%" /RL HIGHEST /SC ONSTART /TN "Pi-hole for Windows" /TR '%STTR%' /F
ECHO.         *NOTE* Additional configuration steps are required if you want
ECHO.         Pi-hole to run automatically at Windows start-up.
DesktopECHO commented 9 months ago

It's not commented out, it's a newline. For example, open a CMD.EXE console and run this to see all your scheduled tasks:

ECHO.&SCHTASKS /QUERY