Rem   ## Abdulkadir Sivri

cls

Setlocal

Rem   ## Windows sistem bilgisi alinir

For /f "tokens=2 delims=[]" %%G in ('ver') Do (set _version=%%G)

 For /f "tokens=2,3,4 delims=. " %%G in ('echo %_version%') Do (set _major=%%G& set _minor=%%H& set _build=%%I)

if "%_major%"=="5" (

net stop W32Time

Rem   ## Windows xp ve 2003 server için


reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones\Turkey Standard Time" /f

reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones\Turkey Standard Time" /v "Display" /t REG_SZ /d   "(UTC+03:00) Istanbul" /f

reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones\Turkey Standard Time" /v "Dlt" /t REG_SZ /d   "Turkey Yaz Saati" /f

reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones\Turkey Standard Time" /v "MUI_Display" /t REG_SZ /d   "@tzres.dll,-2810" /f

reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones\Turkey Standard Time" /v "MUI_Dlt" /t REG_SZ /d   "@tzres.dll,-1501" /f

reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones\Turkey Standard Time" /v "MUI_Std" /t REG_SZ /d   "@tzres.dll,-1502" /f

reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones\Turkey Standard Time" /v "Std"   /t REG_SZ /d   "Turkey Standard Time" /f

reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones\Turkey Standard Time" /v "TZI" /t REG_BINARY /d   "4cffffff00000000c4ffffff0000000000000000000000000000000000000000000000000000000000000000" /f

reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones\Turkey Standard Time\Dynamic DST" /f

reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones\Turkey Standard Time\Dynamic DST" /v "2010" /t REG_BINARY /d "88ffffff00000000c4ffffff00000a0000000500040000000000000000000300000005000300000000000000" /f

reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones\Turkey Standard Time\Dynamic DST" /v "2011" /t REG_BINARY /d "88ffffff00000000c4ffffff00000a0000000500040000000000000000000300010005000300000000000000" /f

reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones\Turkey Standard Time\Dynamic DST" /v "2012" /t REG_BINARY /d "88ffffff00000000c4ffffff00000a0000000500040000000000000000000300000005000300000000000000" /f

reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones\Turkey Standard Time\Dynamic DST" /v "2013" /t REG_BINARY /d "88ffffff00000000c4ffffff00000a0000000500040000000000000000000300000005000300000000000000" /f

reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones\Turkey Standard Time\Dynamic DST" /v "2014" /t REG_BINARY /d "88ffffff00000000c4ffffff00000a0000000500040000000000000000000300010005000300000000000000" /f

reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones\Turkey Standard Time\Dynamic DST" /v "2015" /t REG_BINARY /d "88ffffff00000000c4ffffff00000b0000000200040000000000000000000300000005000300000000000000" /f

reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones\Turkey Standard Time\Dynamic DST" /v "2016" /t REG_BINARY /d "4cffffff000000003c0000000000030000000500030000000000000000000100050001000000000000000000" /f

reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones\Turkey Standard Time\Dynamic DST" /v "FirstEntry" /t REG_DWORD /d 2010 /f

reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones\Turkey Standard Time\Dynamic DST" /v "LastEntry" /t REG_DWORD /d 2017 /f

reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones\Turkey Standard Time\Dynamic DST" /v "2017" /t REG_BINARY /d "4cffffff00000000c4ffffff0000000000000000000000000000000000000000000000000000000000000000" /f

net start W32Time

RunDLL32.exe shell32.dll,Control_RunDLL timedate.cpl,,/Z Turkey Standard Time

RUNDLL32.EXE user32.dll,UpdatePerUserSystemParameters

W32tm /resync

endlocal

) else (

net stop W32Time

Rem   ## Windows 7 ve üzeri için

reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones\Turkey Standard Time" /f

reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones\Turkey Standard Time" /v "Display" /t REG_SZ /d   "(UTC+03:00) Istanbul" /f

reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones\Turkey Standard Time" /v "Dlt" /t REG_SZ /d   "Turkey Yaz Saati" /f

reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones\Turkey Standard Time" /v "MUI_Display" /t REG_SZ /d   "@tzres.dll,-2810" /f

reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones\Turkey Standard Time" /v "MUI_Dlt" /t REG_SZ /d   "@tzres.dll,-1501" /f

reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones\Turkey Standard Time" /v "MUI_Std" /t REG_SZ /d   "@tzres.dll,-1502" /f

reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones\Turkey Standard Time" /v "Std"   /t REG_SZ /d   "Turkey Standard Time" /f

reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones\Turkey Standard Time" /v "TZI" /t REG_BINARY /d   "4cffffff00000000c4ffffff0000000000000000000000000000000000000000000000000000000000000000" /f

reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones\Turkey Standard Time\Dynamic DST" /f

reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones\Turkey Standard Time\Dynamic DST" /v "2010" /t REG_BINARY /d "88ffffff00000000c4ffffff00000a0000000500040000000000000000000300000005000300000000000000" /f

reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones\Turkey Standard Time\Dynamic DST" /v "2011" /t REG_BINARY /d "88ffffff00000000c4ffffff00000a0000000500040000000000000000000300010005000300000000000000" /f

reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones\Turkey Standard Time\Dynamic DST" /v "2012" /t REG_BINARY /d "88ffffff00000000c4ffffff00000a0000000500040000000000000000000300000005000300000000000000" /f

reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones\Turkey Standard Time\Dynamic DST" /v "2013" /t REG_BINARY /d "88ffffff00000000c4ffffff00000a0000000500040000000000000000000300000005000300000000000000" /f

reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones\Turkey Standard Time\Dynamic DST" /v "2014" /t REG_BINARY /d "88ffffff00000000c4ffffff00000a0000000500040000000000000000000300010005000300000000000000" /f

reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones\Turkey Standard Time\Dynamic DST" /v "2015" /t REG_BINARY /d "88ffffff00000000c4ffffff00000b0000000200040000000000000000000300000005000300000000000000" /f

reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones\Turkey Standard Time\Dynamic DST" /v "2016" /t REG_BINARY /d "4cffffff000000003c0000000000030000000500030000000000000000000100050001000000000000000000" /f

reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones\Turkey Standard Time\Dynamic DST" /v "FirstEntry" /t REG_DWORD /d 2010 /f

reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones\Turkey Standard Time\Dynamic DST" /v "LastEntry" /t REG_DWORD /d 2017 /f

reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones\Turkey Standard Time\Dynamic DST" /v "2017" /t REG_BINARY /d "4cffffff00000000c4ffffff0000000000000000000000000000000000000000000000000000000000000000" /f

net start W32Time

RunDLL32.exe shell32.dll,Control_RunDLL /S /Q /F timedate.cpl,,/Z "Turkey Standard Time"

RUNDLL32.EXE user32.dll,UpdatePerUserSystemParameters ,1,True

W32tm /resync

TZUtil /s "Turkey Standard Time"

endlocal

)