It's 10:40 on a Tuesday. You opened Discord to answer one message, and somehow there's a game launcher open next to your spreadsheet. Nothing about the morning was planned that way, and that's the point: the apps are always one click away.
If you want to schedule app blocking on Windows, so certain apps simply won't open during work hours or after bedtime, Windows itself only covers part of it. Family Safety can do it for a child's account, and Do Not Disturb can mute notifications on a schedule. To block apps on a schedule for your own account, you need a separate app like the free StayFree for Windows. Here's what each option does.
Why a schedule works when willpower doesn't
A daily time limit asks "how much?". A schedule asks "when?", and often that's the real problem. An hour of games is fine at 8 PM and a disaster at 10 AM. Scrolling is harmless after dinner and costly at 1 AM.
A schedule takes the decision out of the moment. You decide once, on a calm Sunday, that Steam is off on weekdays from 9 to 6. On Tuesday morning there's nothing to negotiate.
A few schedules that work well:
- Work or school hours: games, social apps and chat apps off from 9 to 5 on weekdays.
- Bedtime: games and video apps off from 11 PM to 7 AM.
- Weekend mornings: gaming only after lunch on Saturday and Sunday.
What Windows can do on its own
Do Not Disturb on a schedule
Windows 11 can turn on Do Not Disturb automatically. According to Microsoft's guide, go to Settings › System › Notifications, expand Turn on do not disturb automatically and set the times.
Where it falls short: it only silences notifications. Every app still opens normally, so it helps with pings from Teams or Discord but not with the game you open yourself.
Microsoft Family Safety (for a child's account)
Family Safety lets a family organizer set app and game limits, including the hours when an app can be used, with the same schedule every day or a different one for each day. Microsoft's guide walks through it.
Where it falls short: it's built for parents managing family members who sign in with a Microsoft account. You can't use it to put a schedule on your own apps.
Task Scheduler with taskkill
Some guides suggest a scheduled task that runs taskkill with the program's file name, for example taskkill /IM steam.exe, at a set time.
Where it falls short: it closes the app once, at that moment. Nothing stops you from opening it again a minute later, and you need the exact .exe name for every app.
How to schedule app blocking on Windows with StayFree
StayFree is a free app usage tracker and app blocker for Windows 10 and 11, rated 4.8 on the Microsoft Store. Its Block on a schedule limit blocks the apps you pick on the days and hours you choose, on your own account and on any edition of Windows.

1. Install StayFree
Get it from the Microsoft Store. It's free, with no ads and no in-app purchases, and it runs in the system tray. StayFree can only limit apps you've opened since installing it, so open the apps you want to schedule at least once.
2. Pick the apps
Open the StayFree dashboard, click Usage Limits in the sidebar and then the + button. Click Select websites, apps and categories to limit and tick the apps on the Apps tab. To cover every game at once, pick Game on the Categories tab instead, so games StayFree adds to that category later are covered too.
3. Choose Block on a schedule
Under How do you want to limit usage for the selected items?, choose Block on a schedule.
4. Choose the days
Click the day buttons to turn days on or off. Monday to Friday are selected by default.
5. Set the hours
Fill in Start Time and End Time. The default is 9 AM to 6 PM. If you want the apps blocked all day on the selected days, turn on All Day instead.
For a bedtime block, put the start time later than the end time, such as 23:00 to 07:00. The block starts on each selected day and runs into the next morning, so for school nights you'd select Sunday to Thursday.
6. Name it and save
Give the limit a name if you like, such as "Work hours", then click Save.
From then on, when you open a blocked app during the schedule, StayFree covers it with a block screen that says your scheduled limit is active now and shows Active Until with the time it ends. You can click Close Blocked App, or Usage Limit Settings to go to your limits.
In the Usage Limits list, a scheduled limit has a calendar icon that turns green while the schedule is running.
Tips for a schedule that holds
- Two windows, two limits. Each schedule has one start and one end time. If you want games blocked both 9 to 12 and 1 to 6, open the limit's menu, choose Duplicate, then Edit the copy's hours.
- Combine it with a daily budget. A schedule says when, not how much. If you also want no more than two hours of games outside work hours, add a separate daily usage limit, as in our guide to limiting gaming time on PC.
- Lock it. In Settings › Lock Usage Limits, choose Pin Protection or Text Challenge. StayFree then asks for it before you can edit, switch off or delete a limit.
- Don't forget the browser. A schedule on the Discord app doesn't stop discord.com in your browser. Website limits need the free StayFree browser extension for Chrome, Edge or Firefox, connected to the desktop app, with Sync this limit across all my devices left on.
- Need it only while you work? If your hours change every day, a Pomodoro timer that blocks apps may fit better than a fixed schedule.
Which option fits
| Do Not Disturb | Family Safety | Task Scheduler | StayFree | |
|---|---|---|---|---|
| Works on your own account | Yes | No, organizer only | Yes | Yes |
| Stops the app from opening | No, mutes alerts | Yes | No, closes it once | Yes |
| Pick apps by | Not per app | Name, app by app | Exact .exe file name | Name, or a category |
| Hard to undo | No | Organizer's account | No | PIN or text challenge |
If you're setting rules for a child, Family Safety is the right tool. If notifications are the only problem, Do Not Disturb is already on your PC. If the apps you keep opening during work hours are your own, StayFree for Windows can block them on a schedule. For more ways to block apps, see how to block apps on Windows.