diff --git a/Windows/PostInstall/Windows-Tweaks.bat b/Windows/PostInstall/Windows-Tweaks.bat index 87fa62e..23be67a 100644 --- a/Windows/PostInstall/Windows-Tweaks.bat +++ b/Windows/PostInstall/Windows-Tweaks.bat @@ -68,6 +68,13 @@ echo Disabling password complexity. secedit /configure /db "%windir%\security\local.sdb" /cfg "%cd%\secconfig.cfg" >nul del secconfig.cfg +choice /C yn /M "Switch to classic context menus?" +if %ERRORLEVEL% EQU 1 ( + echo Switching to classic context menus. + REG ADD HKEY_CURRENT_USER\SOFTWARE\CLASSES\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32 /F >nul 2>&1 + taskkill /F /IM explorer.exe & start explorer +) + echo. echo All done! popd diff --git a/Windows/PostInstall/vm-client.bat b/Windows/PostInstall/vm-client.bat new file mode 100644 index 0000000..5b98665 --- /dev/null +++ b/Windows/PostInstall/vm-client.bat @@ -0,0 +1,21 @@ +@echo off +net session >nul 2>&1 || ( + powershell -c "start cmd -ArgumentList '/c call """%~f0""" %*' -verb runas" >nul 2>&1 || echo This script needs administrative privileges + exit /b +) + +pushd %~d0%~p0 + +choice /C yn /M "Disable powersave features?" +if %ERRORLEVEL% EQU 1 ( + echo Disabling powersave features. + powercfg.exe -change -monitor-timeout-ac 0 + powercfg.exe -change -disk-timeout-ac 0 + powercfg.exe -change -standby-timeout-ac 0 + powercfg.exe -change -hibernate-timeout-ac 0 +) + + +echo. +echo All done! +popd