Monthly Archives: September 2023

Batch script admin check

Have a batch script that requires administrator elevation? Put this line at the top of your script. @FLTMC >NUL 2>&1 || (POWERSHELL -WINDOWSTYLE HIDDEN START-PROCESS """%~f0""" -VERB RUNAS & EXIT /B)

Posted in Coding | Tagged , | Leave a comment

Batch Powershell launcher

Windows comes out of the box with Powershell scripts disabled, and asking every user to change their execution policy to allow running them is a hassle. To get around that, I wrote this little batch script snippet that I just … Continue reading

Posted in Coding | Tagged , , | Leave a comment

Device Wake Config tool

Have you ever had to peruse your Device Manager trying to figure out which device is waking your computer from sleep? Isn’t it annoying how you have to open each device one by one, checking the Power Management tab and … Continue reading

Posted in Coding | Tagged , | Leave a comment