The time has finally come to reveal the commands for your batch file, with which you can configure the options seen above in a completely automatic way. Therefore, after making a backup of the system for preventive purposes, open the Block notes and, among the following blocks of strings, copy the ones that best suit your specific needs:
:: Start> Windows System> Control Panel> System> Change Settings> Change…> Computer Name:
PowerShell Rename-Computer -NewName PC >NUL
:: Start> Windows System> Control Panel> System> Change Settings> Change…> Workgroup:
PowerShell Rename-Computer -WorkGroupName WORKGROUP >NUL
:: Start> Windows System> Control Panel> System> Advanced System Settings> Settings… (Performance)
REG ADD “HKCUControl PanelDesktop” /v UserPreferencesMask /t REG_BINARY /d 9012078010000000 /f >NUL
REG ADD “HKCUControl PanelDesktopWindowMetrics” /v MinAnimate /t REG_SZ /d 0 /f >NUL
REG ADD HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerAdvanced /v ListviewAlphaSelect /t REG_DWORD /d 0 /f >NUL
REG ADD HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerAdvanced /v TaskbarAnimations /t REG_DWORD /d 0 /f >NUL
REG ADD HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerVisualEffects /v VisualFXSetting /t REG_DWORD /d 3 /f >NUL
REG ADD HKCUSoftwareMicrosoftWindowsDWM /v AlwaysHibernateThumbnails /t REG_DWORD /d 0 /f >NUL
REG ADD HKCUSoftwareMicrosoftWindowsDWM /v EnableAeroPeek /t REG_DWORD /d 0 /f >NUL
:: Start> Windows System> Control Panel> System> Advanced System Settings> Settings… (Startup and Recovery)> Write event to system event log> Disabled
REG ADD HKLMSYSTEMCurrentControlSetControlCrashControl /v LogEvent /t REG_DWORD /d 0 /f >NUL
:: Start> Windows System> Control Panel> System> Advanced System Settings> Settings… (Startup and Recovery)> Automatically Restart> Disabled
REG ADD HKLMSYSTEMCurrentControlSetControlCrashControl /v AutoReboot /t REG_DWORD /d 0 /f >NUL
:: Start> Windows System> Control Panel> System> Advanced System Settings> Settings… (Startup and Recovery)> Write Debugging Info> (None)
REG ADD HKLMSYSTEMCurrentControlSetControlCrashControl /v CrashDumpEnabled /t REG_DWORD /d 0 /f >NUL
:: Start> Windows System> Control Panel> System> System Protection>
REG ADD “HKLMSOFTWAREPoliciesMicrosoftWindows NTSystemRestore” /v DisableSR /t REG_DWORD /d 1 /f >NUL
:: Start> Windows System> Control Panel> System> Remote Connection Settings> Allow Remote Assistance connections to this computer> Disabled
REG ADD “HKLMSYSTEMCurrentControlSetControlRemote Assistance” /v fAllowToGetHelp /t REG_DWORD /d 0 /f >NUL
Now you just need to save the text by adding the extension to the file name .cmd, eg: Control_panel_4.cmd.
Then run the file as administrator and, at the end of the operations, restart your PC to make the changes effective.
Configure and optimize Windows 10: System