💻 Software
Automatically run a script when I log on to Windows
Fresh7 days ago
Mar 15, 2026224376 viewsConfidence Score0%
0%
Problem
How can I automatically run a script when I log on to Windows? I'd like to run something like this whenever I log into my computer: A bonus would be to be able to run the same script whenever I unlock the screen saver as well.
Error Output
echo %USERNAME% logged on at %DATE% %TIME% >> log.txt
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Automatically run a script when I log on to Windows
Low Risk
You can create a scheduled task that will run when your computer is unlocked: Start > Administrative Tools > Task Scheduler left pane: select Task Scheduler Library right pane: click Create Task... (NOTE: this is the only way to get the correct trig…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix