Skip to content

Lock your computer while running processes in the background

License

Notifications You must be signed in to change notification settings

r8btx/Windows-Idler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Windows-Idler

To keep away low-threat individuals (e.g. kids) from messing around your computer, it is best to lock your computer. However, there are times when you want to leave some processes working in the background, thus you may want a way to lock your computer while preventing your computer from putting into sleep. This PowerShell script provides a way for you to let your computer stay idle and process whatever you want in the background.

You can use Idler when you are:

  • running backups
  • running antimalware software
  • running to restroom in the middle of playing games
  • playing music in the background
  • downloading files
  • etc.

Advanced Usage

Normally, you need to right-click the Windows PowerShell Script(.ps1) and click "Run with PowerShell" to execute.
But, if you create a shortcut file(.lnk), you can double click or even use "Shortcut key" to execute the script.

How to setup:

  1. On desktop, follow right-click > New > Shortcut

Creating a shortcut file

  1. When you see the Create Shortcut window, paste the below code.
    Replace FOLDER CONTAINING THE SCRIPT with the location of a folder containing the script.

C:\Windows\System32\cmd.exe /c PowerShell Set-ExecutionPolicy Bypass -Scope Process;$path='FOLDER CONTAINING THE SCRIPT\Idler.ps1';^& $path

Defining what to execute

  1. Once you create a shortcut file in the Desktop folder, you can go to shortcut file's properties and define options such as Shortcut Key. In this example, the option is set to Crtl + Alt + L. From now on, whenever desired, Idler can be activated via Crtl + Alt + L key combo.

Configuring shortcut options

Acknowledgments

  • Hat tip to anyone whose code was used

About

Lock your computer while running processes in the background

Topics

Resources

License

Stars

Watchers

Forks