- Change the python file extension to '.pyw'
- Run as Administrator and execute
- Change the python file extension to '.pyw'
- Search Task Scheduler
- Click 'Create Task'
- Input a name for this task (you can use website blocker)
- Click 'Configure for' and choose your os
- Click the 'Run with highest priviledges' so that windows will run the script with administrativie rights
- Go to 'Triggers' tab and click New
- Then click the 'Begin the task' dropdown and select At Startup' then OK
- Next, go to the 'Actions' tab, click the action dropdown and select 'Start a program'
- Click browse to select the script from directory and click OK
- Next, go to the 'Conditions' tab, you can choose to run the script on AC power or not
- select OK
- REBOOT YOUR SYSTEM