This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
title Automated shutdown | |
:: How many seconds*10 until power off ; 360 : 1 hour, < 1 : never, | |
set "tenSeconds=360" | |
if %tenSeconds% leq 0 (goto :ELSE) | |
set /a seconds="tenSeconds * 10" | |
echo|set /p="Waiting for internet connection to be lost or %seconds% seconds to then shut down . . ." & echo. & echo. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
powershell -Command "$pth = \"HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\"; Set-ItemProperty -Path $pth -Name \"ConsentPromptBehaviorAdmin\" -Value 1; Get-ItemProperty -Path $pth -Name \"ConsentPromptBehaviorAdmin\"; " | |
pause |