View Full Version : modify time
ralabiso
07-13-2001, 06:38 PM
Hi, i need enable that a restricted user , or an exe program , can modify the time in Win2000 .
I know that i can do this using runas and Administrator royalties, but i can't show the password and i need that all this is done before that a program as Winword run .
Thanks
RWSchlatter
07-13-2001, 10:31 PM
If you studied your documentation of Win2K, you will have seen, that users belonging to the group "Power Users" have the possiblity to adjust date and time. One assumes, that these users know what happens when they do this.
But modifying this behaviour is also possible and its a plain administrative task (no registry hacking).
First J suggest you define for your purpose a new user group, eg named "TimeTravellers". Then you can just add and remove users to this group as they have need to use the business process that requires modifying the clock. Such users can also remain in the common "Users" group, where they don't have permissions of the "Power Users".
Next you startup the Group Polocy Editor (GPEdit.msc in Start>Run), In the Local Computer Policy tree you move to Computer COnfiguration > Windows Settings > Security Settings > Local Policies > User Rights Assignment.
You will find a policy entry "Change System Time". Double-click this line. On the displayed dialog click the Add... button and add the "TimeTravellers" group.
Accept all way back with OK.
personal remark: J don't quite see what the need should be to modify the system clock for daily work (J accept that it may be necessary each couple of weeks if your hardware does not have a very exact clock). Don't forget, that your system may also be running scheduled task, where the trigger for execution could be either missed or started early when resetting the time. You mentioned working with WinWord: did you check if it is not better to write a macro to adjust some date / time settings within the application, rather then modifying global system settings ?
______________
Regards - Richard
ralabiso
07-14-2001, 12:52 AM
Thanks for answer .
The problem that i have is :
the user must not be able to modifiy the time , and every time that he use a program i have to take the time from the Server of my office and set it on the client .
( "Winword" is an example of course , the program is a Facturaction Sotware that must work always with the same time on every client, so i decided to take the time and date always from the same Server )
Any good idea ??
RWSchlatter
07-14-2001, 04:08 AM
copied from Win2KPro Help file:<pre>Net time</pre>
Synchronizes the computer's clock with that of another computer or domain. Used without the /set option, displays the time for another computer or domain.
net time [\\computername | /domain[:domainname] | /rtsdomain[:domainname]] [/set]
net time [\\computername] [/querysntp] | [/setsntp[:ntp server list]]
Parameters
none
Displays the current date and time at the computer designated as the time server for the local computer's Windows Server domain.
\\computername
Specifies the name of a server you want to check or with which you want to synchronize.
/domain[:domainname]
Specifies the domain with which to synchronize time.
/rtsdomain[:domainname]
Specifies the domain of the Reliable Time Server with which to synchronize time.
/set
Synchronizes the computer's clock with the time on the specified computer or domain.
/querysntp
Displays the name of the Network Time Protocol (NTP) server currently configured for the local computer or the one specified in \\computername.
/setsntp[:ntp server list]
Specifies a list of NTP time servers to be used by the local computer. The list may contain IP addresses or DNS names, separated by spaces. If multiple timeservers are used, the list must be surrounded by quotes.
--- end quote ---
use in the each users logon script !
______________
Regards - Richard
Powered by vBulletin™ Version 4.1.0 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.