@echo off title Optimizer - Win 6.1 :srun cls echo. echo Version: 2019-09-12 echo ________________________________________________________________________________ echo Press any key to start optimizing process. pause > nul echo ________________________________________________________________________________ echo For VMware Virtual Machine if exist "C:\Program Files\VMware\VMware Tools" goto svmwarebegin if exist "C:\Program Files (x86)\VMware\VMware Tools" goto svmwarebegin goto svmwareexit :svmwarebegin echo Service: Power rem sc config power start= disabled echo. :svmwareexit echo For Windows NT 6 Server if exist "%SystemRoot%\system32\ServerManager.msc" goto snt6serverbegin goto sen6serverexit :snt6serverbegin echo Personalized: Easily Operation set vk="hklm\software\policies\microsoft\windows nt\reliability" reg add %vk% /v "shutdownreasonon" /t reg_dword /d 1 /f set vk="hklm\software\microsoft\windows\currentversion\policies\system" reg add %vk% /v "disablecad" /t reg_dword /d 1 /f echo Service: Desktop Window Manager Session Manager sc config uxsms start= disabled echo Service: Multimedia Class Scheduler sc config mmcss start= disabled echo Service: Windows Audio sc config audiosrv start= disabled echo Service: Windows Remote Management sc config wimrm start= disabled echo. :sen6serverexit echo For Windows NT 6 Client :snt6client echo Service: Application Experience sc config AeLookupSvc start= disabled echo Service: Background Intelligent Transfer Service sc config BITS start= disabled echo Service: Base Filtering Engine sc config BFE start= disabled echo Service: Client for NFS sc config nfsclnt start= disabled echo Service: COM+ Event System sc config EventSystem start= disabled echo Service: COM+ System Application sc config COMSysApp start= disabled echo Service: Computer Browser sc config browser start= auto echo Service: Diagnostic Policy Service sc config DPS start= disabled echo Service: Diagnostic Service Host sc config WdiServiceHost start= disabled echo Service: Diagnostic System Host sc config WdiSystemHost start= disabled echo Service: Distributed Link Tracking Client sc config TrkWks start= disabled echo Service: Distributed Transaction Coordinator sc config MSDTC start= disabled echo Service: Function Discovery Provider Host sc config fsphost start= disabled echo Service: Function Discovery Resource Publication sc config FDResPub start= auto echo Service: IKE and AuthIP IPsec Keying Modules sc config ikeext start= disabled echo Service: Indexing Service sc config cisvc start= disabled echo Service: IP Helper sc config iphlpsvc start= disabled echo Service: IPsec Policy Agent sc config policyagent start= disabled echo Service: Keyboard Filter sc config keyboardfilter start= disabled echo Service: LPD Service sc config lpdsvc start= disabled echo Service: Offline Files sc config CscService start= disabled echo Service: Portable Device Enumerator Service sc config WPDBusEnum start= disabled echo Service: Program Compatibility Assistant Service sc config PcaSvc start= disabled echo Service: Print Spooler sc config Spooler start= disabled echo Service: RIP Listener sc config iprip start= disabled echo Service: Security Accounts Manager sc config SamSs start= auto echo Service: Security Center sc config wscsvc start= disabled echo Service: Server sc config LanmanServer start= auto echo Service: Shell Hardware Detection sc config ShellHWDetection start= disabled echo Service: Simple TCP/IP Services sc config simptcp start= disabled echo Service: SNMP Service sc config snmp start= disabled echo Service: SSDP Discovery sc config SSDPSRV start= disabled echo Service: Superfatch sc config sysmain start= disabled echo Service: System Event Notification Service sc config SENS start= disabled echo Service: TCP/IP NetBIOS Helper sc config lmhosts start= auto echo Service: Volume Shadow Copy sc config VSS start= disabled echo Service:Windows Connect Now - Config Registrar sc config wcncsvc start= disabled echo Service: Windows Defender sc config WinDefend start= disabled echo Service: Windows Firewall sc config MpsSvc start= disabled echo Service: Windows Font Cache Service sc config FontCache start= disabled echo Service: Windows Search sc config WSearch start= disabled echo Service: Windows Media Player Network Sharing Service sc config WMPNetworkSvc start= disabled echo Service: Windows Update sc config wuauserv start= disabled echo Service: WinHTTP Web Proxy Auto-Discovery Service sc config WinHttpAutoProxySvc start= disabled echo Service: WMI Performance Adapter sc config wmiApSrv start= disabled echo Service: Workstation sc config LanmanWorkstation start= auto echo Service: .NET Framework sc config clr_optimization_v2.0.50727_32 start= disabled sc config clr_optimization_v2.0.50727_64 start= disabled sc config clr_optimization_v4.0.30319_32 start= disabled sc config clr_optimization_v4.0.30319_64 start= disabled echo Service: TP AutoConnect Service sc config tpautoconnsvc start= disabled echo Service: VMware Alias Manager and Ticket Service sc config vgauthservice start= disabled echo Service: VMware CAF AMQP Communication Service sc config vmwarecafcommamqplistener start= disabled echo Service: VMware CAF Management Agent Service sc config vmwarecafmanagementagenthost start= disabled echo Service: VMware Snapshot Provider sc config vmvss start= disabled echo Service: VMware Physical Disk Helper Service sc config "vmware physical disk helper service" start= disabled echo ________________________________________________________________________________ echo Service: Windows Time set vk="HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config" reg add %vk% /v "AnnounceFlags" /t reg_dword /d 5 /f >nul set vk="HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpServer" reg add %vk% /v "Enabled" /t reg_dword /d 1 /f >nul set vk="HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpClient" reg add %vk% /v "SpecialPollInterval" /t reg_dword /d 60 /f >nul set vk="HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters" reg add %vk% /v "NtpServer" /t reg_sz /d "pool.ntp.org" /f >nul sc config w32time start= auto >nul sc stop w32time >nul sc start w32time >nul echo ________________________________________________________________________________ echo Performance: Burn set vp="&userprofile&\AppData\Local\Microsoft\Windows\Burn\burn" if exist %vp% rmdir /s /q vp echo. > %vp% echo ________________________________________________________________________________ echo Performance: Page File set vk="hklm\system\currentcontrolset\control\session manager\memory management" reg add %vk% /v "pagingfiles" /t reg_multi_sz /d "" /f reg add %vk% /v "disablepagingexecutive" /t reg_dword /d 1 /f reg add %vk% /v "clearpagefileatshutdown" /t reg_dword /d 1 /f set vp=c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z for %%i in (%vp%) do attrib -s -h %%i:\pagefile.sys for %%i in (%vp%) do del /f /q %%i:\pagefile.sys echo ________________________________________________________________________________ echo Performance: Prefetch set vk="hklm\system\currentcontrolset\control\session manager\memory management\prefetchparameters" reg add %vk% /v "enableprefetcher" /t reg_dword /d 1 /f reg add %vk% /v "enablesuprefetcher" /t reg_dword /d 0 /f del /f /q %windir%\prefetch\*.* echo ________________________________________________________________________________ echo Performance: Application Response set vk="hklm\system\currentcontrolset\control\windows" reg add %vk% /v "nopopupsonboot" /t reg_dword /d 1 /f set vk="hklm\system\currentcontrolset\control" reg add %vk% /v "waittokillservicetimeout" /t reg_sz /d "1000" /f set vk="hkcu\control panel\desktop" reg add %vk% /v "autoendtasks" /t reg_sz /d "1" /f reg add %vk% /v "hungapptimeout" /t reg_sz /d "500" /f reg add %vk% /v "waittokillapptimeout" /t reg_sz /d "1000" /f set vk="hku\.default\control panel\desktop" reg add %vk% /v "autoendtasks" /t reg_sz /d "1" /f reg add %vk% /v "hungapptimeout" /t reg_sz /d "500" /f reg add %vk% /v "waittokillapptimeout" /t reg_sz /d "1000" /f echo ________________________________________________________________________________ echo Security: Auto Run set vk="hklm\system\currentcontrolset\services\cdrom" reg add %vk% /v "autorun" /t reg_dword /d 0 /f echo ________________________________________________________________________________ echo Personalized: Desktop set vk="hkcu\software\microsoft\windows\currentversion\explorer" reg add %vk% /v "link" /t reg_dword /d 0 /f set vk="hku\.default\software\microsoft\windows\currentversion\explorer" reg add %vk% /v "link" /t reg_dword /d 0 /f echo ________________________________________________________________________________ echo Personalized: Internet Explorer set vk="hkcu\software\microsoft\internet explorer\main" reg add %vk% /v "start page" /t reg_sz /d "about:blank" /f set vk="hkcu\software\policies\microsoft\internet explorer\main" reg add %vk% /v "disablefirstruncustomize" /t reg_dword /d 2 /f set vk="hkcu\software\policies\microsoft\windows\currentversion\internet settings\cache" reg add %vk% /v "persistent" /t reg_dword /d 0 /f set vk="hkcu\software\policies\microsoft\internet explorer\linksbar" reg add %vk% /v "enabled" /t reg_dword /d 0 /f set vk="hkcu\software\policies\microsoft\internet explorer\commandbar" reg add %vk% /v "commandbarenabled" /t reg_dword /d 0 /f set vk="hkcu\software\policies\microsoft\internet explorer\activities" reg add %vk% /v "noactivities" /t reg_dword /d 1 /f set vk="hku\.default\software\microsoft\internet explorer\main" reg add %vk% /v "start page" /t reg_sz /d "about:blank" /f set vk="hku\.default\software\policies\microsoft\internet explorer\main" reg add %vk% /v "disablefirstruncustomize" /t reg_dword /d 2 /f set vk="hku\.default\software\policies\microsoft\windows\currentversion\internet settings\cache" reg add %vk% /v "persistent" /t reg_dword /d 0 /f set vk="hku\.default\software\policies\microsoft\internet explorer\linksbar" reg add %vk% /v "enabled" /t reg_dword /d 0 /f set vk="hku\.default\software\policies\microsoft\internet explorer\commandbar" reg add %vk% /v "commandbarenabled" /t reg_dword /d 0 /f set vk="hku\.default\software\policies\microsoft\internet explorer\activities" reg add %vk% /v "noactivities" /t reg_dword /d 1 /f echo ________________________________________________________________________________ echo Clean: Dynamic Link Library set vk="hklm\software\microsoft\windows\currentversion\explorer" reg add %vk% /v "alwaysunloaddll" /t reg_dword /d 1 /f echo ________________________________________________________________________________ echo Clean: Autoruns set vk="hklm\software\microsoft\windows\currentversion\run" reg delete %vk% /v "hotkeyscmds" /f reg delete %vk% /v "igfxtray" /f reg delete %vk% /v "persistence" /f reg delete %vk% /v "rthdcpl" /f echo ________________________________________________________________________________ echo Clean: VMware Process rem set vk="hklm\software\microsoft\windows\currentversion\run" rem reg delete %vk% /v "vmware user process" /f echo ________________________________________________________________________________ echo The optimizing operation had been completed. pause >nul rem echo The optimizing operation had been completed. Press any key to reboot. rem pause >nul rem start /min shutdown -r -t 0 :send