Quantcast
Channel: SharePoint
Viewing all articles
Browse latest Browse all 103

Can I stop my screen from locking due to inactivity?

$
0
0

Tonight I was watching movie on my TV being broadcasted via HDMI from my Laptop.

It was annoying to force my laptop from dying every now and then.  (Somehow I was not able to change power management settings to never sleep, don’t know why!!!)

 

So I quickly wrote this PowerShell script, to keep on clicking at random places on my screen:

Powershell Script saved as txt file  save this text on your machine and rename it as *.ps1

 

Note: You may have to use Get-ExecutionPolicy and Set-ExecutionPolicy to allow powershell scripts on your machine.

Help Get-ExecutionPolicy -Full

Help Set-ExecutionPolicy -Full


Viewing all articles
Browse latest Browse all 103

Trending Articles