@Echo off For %%a In (D E F G H I J K L M N O P Q R S T U V W X Y Z) Do If Exist "%%a:\$WIN7_SP2.x64.txt" Set SRC=%%a: Set > %SystemDrive%\SET.TXT Del %SystemRoot%\system32\FNTCACHE.DAT %SRC%\etc\InstallFontsTool_x64 "%SRC%\etc\fonts" Del %SystemRoot%\system32\FNTCACHE.DAT CSCRIPT //Nologo %SRC%\etc\GetVideoModeDescription.vbs > %SystemDrive%\VideoModeDescription.TXT MkDir %SystemDrive%\S MkDir %SystemDrive%\T\B MkDir %SystemDrive%\T\L MkDir %SystemDrive%\T\T MkDir %SystemDrive%\T\W MkDir %SystemDrive%\home rem Echo PHP-5.6.37 インストール rem XCOPY %SRC%\etc\software\PHP-5.6.37 %SystemDrive%\home\PHP-5.6.37\ /S /E /V /Q /H /R /K /Y rem MkLink /J %SystemDrive%\home\PHP %SystemDrive%\home\PHP-5.6.37 REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\Background" /v "OEMBackground" /t "REG_DWORD" /d 1 /f REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI" /v "ButtonSet" /t "REG_DWORD" /d 1 /f MkDir %SystemDrive%\Windows\System32\oobe\info\backgrounds Copy /Y /V %SRC%\etc\wallpaper\Logon_Screen_Blue_ROG_RYZEN_3.jpg %SystemDrive%\Windows\System32\oobe\info\backgrounds\backgroundDefault.jpg Copy /Y /V %SRC%\etc\wallpaper\Logon_Screen_Blue_ROG_RYZEN_3.jpg %SystemDrive%\Windows\System32\oobe\info\backgrounds\background1920x1200.jpg Echo ボリュームラベル設定 WMIC BASEBOARD GET PRODUCT /VALUE | FIND /i "Product" > %TEMP%\mb.product.txt For /F "tokens=1,2,3* delims==" %%A in (%TEMP%\mb.product.txt) Do Label %SystemDrive%%%B rem If Not %SystemDrive% == "" Label %SystemDrive%GRMCULXFRER JA SP2 rem Vol %SystemDrive% Echo Event 10 エラー抑止 START /WAIT cscript %SRC%\etc\fix.event10.vbs //H:CScript Echo 休止状態機能を無効化する powercfg /hibernate off Echo 余計なタスクスケジューラを無効化する schtasks /Change /Disable /TN "\Microsoft\Windows\Defrag\ScheduledDefrag" schtasks /Change /Disable /TN "\Microsoft\Windows Defender\MP Scheduled Scan" schtasks /Change /Disable /TN "\Microsoft\Windows Defender\MpIdleTask" schtasks /Change /Disable /TN "\Microsoft\Windows\Windows Error Reporting\QueueReporting" schtasks /Change /Disable /TN "\Microsoft\Windows\Power Efficiency Diagnostics\AnalyzeSystem" schtasks /Change /Disable /TN "\Microsoft\Windows\Application Experience\AitAgent" schtasks /Change /Disable /TN "\Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser" schtasks /Change /Disable /TN "\Microsoft\Windows\Application Experience\ProgramDataUpdater" schtasks /Change /Disable /TN "\Microsoft\Windows\Autochk\Proxy" schtasks /Change /Disable /TN "Microsoft\Windows\Customer Experience Improvement Program\Consolidator" schtasks /Change /Disable /TN "Microsoft\Windows\Customer Experience Improvement Program\KernelCeipTask" schtasks /Change /Disable /TN "Microsoft\Windows\Customer Experience Improvement Program\UsbCeip" schtasks /Change /Disable /TN "\Microsoft\Windows\DiskDiagnostic\Microsoft-Windows-DiskDiagnosticDataCollector" schtasks /Change /Disable /TN "\Microsoft\Windows\Maintenance\WinSAT" schtasks /Change /Disable /TN "\Microsoft\Windows\Media Center\ActivateWindowsSearch" schtasks /Change /Disable /TN "\Microsoft\Windows\Media Center\ConfigureInternetTimeService" schtasks /Change /Disable /TN "\Microsoft\Windows\Media Center\DispatchRecoveryTasks" schtasks /Change /Disable /TN "\Microsoft\Windows\Media Center\ehDRMInit" schtasks /Change /Disable /TN "\Microsoft\Windows\Media Center\InstallPlayReady" schtasks /Change /Disable /TN "\Microsoft\Windows\Media Center\mcupdate" schtasks /Change /Disable /TN "\Microsoft\Windows\Media Center\MediaCenterRecoveryTask" schtasks /Change /Disable /TN "\Microsoft\Windows\Media Center\ObjectStoreRecoveryTask" schtasks /Change /Disable /TN "\Microsoft\Windows\Media Center\OCURActivate" schtasks /Change /Disable /TN "\Microsoft\Windows\Media Center\OCURDiscovery" schtasks /Change /Disable /TN "\Microsoft\Windows\Media Center\PBDADiscovery" schtasks /Change /Disable /TN "\Microsoft\Windows\Media Center\PBDADiscoveryW1" schtasks /Change /Disable /TN "\Microsoft\Windows\Media Center\PBDADiscoveryW2" schtasks /Change /Disable /TN "\Microsoft\Windows\Media Center\PvrRecoveryTask" schtasks /Change /Disable /TN "\Microsoft\Windows\Media Center\PvrScheduleTask" schtasks /Change /Disable /TN "\Microsoft\Windows\Media Center\RegisterSearch" schtasks /Change /Disable /TN "\Microsoft\Windows\Media Center\ReindexSearchRoot" schtasks /Change /Disable /TN "\Microsoft\Windows\Media Center\SqlLiteRecoveryTask" schtasks /Change /Disable /TN "\Microsoft\Windows\Media Center\UpdateRecordPath" Echo レジストリ設定 For %%a in (%SRC%\etc\reg\f\*.reg) Do Reg IMPORT %%a