Joseph Morales
2007-06-29 00:00:55 UTC
How can a script set the timezone and AutoDaylightSavings values on
Longhorn?
On Windows 2003/XP, I am able to set the Timezone from a script by launching
a command such as
Control.exe Timedate.cpl,,/Z Pacific Standard Time
Also, on Windows 2003/XP, I am able to set AutoDaylightSavings from a script
by using the AutoDaylightSavingsTime property of the Win32_ComputerSystem
class.
Neither of these techniques works on my Longhorn test system. No errors are
reported, but the system timezone and AutoDaylightSavings don't really seem
to change. At least, if I open the Date and Time applet afterwards, it
doesn't reflect the changes.
I don't think it's a security issue, because in Local Security Policy, the
Change the Time Zone policy is set to include the Administrators group, and
I am logged on as Administrator.
Any suggestions?
Thanks, Joseph
Longhorn?
On Windows 2003/XP, I am able to set the Timezone from a script by launching
a command such as
Control.exe Timedate.cpl,,/Z Pacific Standard Time
Also, on Windows 2003/XP, I am able to set AutoDaylightSavings from a script
by using the AutoDaylightSavingsTime property of the Win32_ComputerSystem
class.
Neither of these techniques works on my Longhorn test system. No errors are
reported, but the system timezone and AutoDaylightSavings don't really seem
to change. At least, if I open the Date and Time applet afterwards, it
doesn't reflect the changes.
I don't think it's a security issue, because in Local Security Policy, the
Change the Time Zone policy is set to include the Administrators group, and
I am logged on as Administrator.
Any suggestions?
Thanks, Joseph