alan lim Posted April 16, 2004 Share Posted April 16, 2004 Hi All, I work in a computer reseller company. I always have to setup and configure new computers for my client. During the setup, i need to change Time zone, Time and Date. Is there a way that AutoIt can sychronize local Time zone, Time and Date to a new computer. Thanks Link to comment Share on other sites More sharing options...
Josbe Posted April 16, 2004 Share Posted April 16, 2004 You can use the console command:net time \\computername /setfor syncronize...see: More information AUTOIT > AutoIt docs / Beta folder - AutoIt latest beta Link to comment Share on other sites More sharing options...
CyberSlug Posted April 16, 2004 Share Posted April 16, 2004 (edited) You can probably set the time zone by setting the right registry keys....Use RegShot or a simlar program to determine the correct registry values.For example, if I change from Central to Eastern time zones (USA), then regshot reports:Values modified:8----------------------------------HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\TimeZoneInformation\Bias: 0x00000168HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\TimeZoneInformation\Bias: 0x0000012CHKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\TimeZoneInformation\StandardName: "Central Standard Time"HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\TimeZoneInformation\StandardName: "Eastern Standard Time"HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\TimeZoneInformation\DaylightName: "Central Standard Time"HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\TimeZoneInformation\DaylightName: "Eastern Daylight Time"HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\TimeZoneInformation\ActiveTimeBias: 0x0000012CHKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\TimeZoneInformation\ActiveTimeBias: 0x000000F0HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation\Bias: 0x00000168HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation\Bias: 0x0000012CHKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation\StandardName: "Central Standard Time"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation\StandardName: "Eastern Standard Time"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation\DaylightName: "Central Standard Time"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation\DaylightName: "Eastern Daylight Time"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation\ActiveTimeBias: 0x0000012CHKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation\ActiveTimeBias: 0x000000F0 Edited April 16, 2004 by CyberSlug Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now