@echo off
setlocal

:: Prompt the user for the folder name
set /p nameComputer="Enter the name of the Computer: "



:: Rename's the Computer
Rename-Computer -NewName %nameComputer%


::Prevents from going to sleep
powercfg /h off
powercfg /change standby-timeout-ac 0
powercfg /change standby-timeout-dc 0

::Prevents the monitor from going to sleep
powercfg -change -monitor-timeout-ac x

:: Restart every day 6am
schtasks /create /tn "DailyRestart" /tr "shutdown /r /f /t 0" /sc daily /st 06:00 /ru SYSTEM /f

::Start the app when booting up
schtasks /create /tn "RunMyAppOnLogin" /tr "C:\kernel\ads1\display2.exe" /sc onlogon /ru SYSTEM /f

:: Sets the time zone
tzutil /s "Eastern Standard Time"

::Hide's the taskbar
&{$p='HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\StuckRects3';$v=(Get-ItemProperty -Path $p).Settings;$v[8]=3;&Set-ItemProperty -Path $p -Name Settings -Value $v;&Stop-Process -f -ProcessName explorer}



:: Check if the folder creation was successful


endlocal
pause
