Do you want to automatically lock your Windows 11 PC when you're away from it? Locking your computer when you're not using it is an essential security measure to protect your personal information and prevent unauthorized access. While Windows 11 offers a feature called Dynamic Lock that can automatically lock your PC when your paired Bluetooth device is out of range, it may not always work as expected. In this article, we will guide you on how to lock your Windows 11 PC automatically without relying on Dynamic Lock.
To lock your Windows 11 PC automatically without Dynamic Lock, you can use the built-in power options and a simple script. Follow the steps below:
Step 1: Create a Lock Script
First, we need to create a simple script that will lock your PC when executed. Here's how you can do it:
- Open Notepad or any other text editor.
- Type the following command in the editor:
rundll32.exe user32.dll,LockWorkStation - Save the file with a .bat extension, for example, "lockscript.bat".
Step 2: Create a Scheduled Task
Now, we will create a scheduled task that will run the lock script automatically when your computer is idle for a specific period. Here's what you need to do:
- Press the
Windows keyand type "Task Scheduler". Open the Task Scheduler app. - Click on "Create Basic Task" in the right panel.
- Give your task a name, for example, "Auto Lock".
- Click "Next".
- Choose the trigger that suits your needs, such as "When the computer is idle".
- Click "Next".
- Choose the time duration after which you want your computer to lock.
- Click "Next".
- Select "Start a program" as the action.
- Click "Next".
- Browse and select the lock script file you created in Step 1.
- Click "Next" and then "Finish".
That's it! You have successfully created a scheduled task that will run the lock script and lock your Windows 11 PC automatically when it is idle for the specified duration.
Now, whenever your computer is idle for the specified time, the lock script will execute, and your PC will be locked. This provides an additional layer of security to protect your personal information.
Note: You can modify the scheduled task settings, such as the idle time duration or the trigger, according to your preferences.
We hope this guide has helped you lock your Windows 11 PC automatically without relying on Dynamic Lock. If you have any further questions or need assistance, feel free to reach out to our tech support team.
References
| Source | Link |
|---|---|
| Microsoft Support | https://support.microsoft.com/ |
| TechRadar | https://www.techradar.com/ |