|
|
|||||||
Hi guys & galls I know i should be using W32TIME BUT we are in the middle of a migration and I havent got time to push it out (especially when we will have it when we move to 2003) But i am having problems at the moment with setting the time. I have changed the permissions for changing the time using NTRIGHTS.exe but am having a problem with shelling net time. I know I can put this in my login script but was wondering if it was possible to set the time at the same time as the permissions change? I have whipped up this little number below using a script I found on this site (sorry to the author but I cannot remember you name!!) code:I have tried using settime but this also doesnt work? HELP !!!! Also is it possible to revert the permissions after the time has been set? [ 07. November 2003, 14:06: Message edited by: AzzerShaw ] |
||||||||
|
|
|||||||
Doesn't the KiXtart native command SETTIME work? Kent |
||||||||
|
|
|||||||
quote:Unless you are talking about NT4 clients, W32Tm.exe is already running as a service. The effort required to "push it out" as you say, is the same as your proposed hack. THe only problem with your hack is that if users manually change the time, it will most assuredly break your kerberos authentication! |
||||||||
|
|
|||||||
Nope tried this script and this doesnt work either, should the changes happen straight away? code: |
||||||||
|
|
|||||||
Hi Les Yes I am talking about NT 4.0, sorry should of said. Do you know if it is possible to revert the changes back afterwards ? |
||||||||
|
|
|||||||
Are you sure the text file is being opened? Maybe you should add some error checking. |
||||||||
|
|
|||||||
Hello bud Yes it opens the file fine as it changes the permissions fine, maybe I should try and put a sleep in there. I'll let you knows Aaron |
||||||||
|
|
|||||||
nadgers. Didnt work !! Anyone got suggestions? |
||||||||
|
|
|||||||
Done some error checking and the value it returns after the settime is "0" ha ha great... HELP ?? |
||||||||
|
|
|||||||
Firstof sall, I'd never give the 'Everyone' group the right to change the systemtime. Restrict this right to your actual users, e.g. 'Domain Users'. You state that SETTIME does not work. What is the error code returned by SETTIME? I also agree that Win32Time is the way to go. The 'no time to push it out' is a poor excuse as you now spend time trying to hack your way into making SETTIME work. Finally, it seems you change the rights on a remote computer but then you try to synchronize the time on your local computer? |
||||||||
|
|
|||||||
Cannot "push" out W32Time? Try this out - code:It is some really old code I have lying around and probably needs to be cleaned up.;Time installation Kent [ 07. November 2003, 16:24: Message edited by: kdyer ] |
||||||||
|
|
|||||||
A similar deployment script is here: Time Snchronize |
||||||||
|
|
|||||||
I was waiting for your grilling Jens ha ha yes you are correct I will change to domain users. The error code as explained above returned as 0. I said as the top i would rather use w32time but my superior (ha ha) has said that the time service will remain the same. (It has to be tested and go through audit etc etc) quote:Exactly my orginall point, is it possible to use either settime or net time so it will adjust the time remotley ? |
||||||||
|
|
|||||||
SETTIME and NET TIME both do the same. They synchronize the date/time of the local computer against a remote time server. Not the other way around! |
||||||||
|
|
|||||||
Pants. So im stuffed then? Is there anything else? |
||||||||
|
|
|||||||
Why can't you deploy w32time? That is best and easiest way aroudn this. You can have it re-sync several times a day too (especially with large db files, etc.) Kent |
||||||||
|
|
|||||||
Alright you twisted my arm, I'll give it a go in out test pc's. Just out of interest Kent, how do you run your script because it looks like its being run locally? Do you schedule a task or sumfin? |
||||||||
|
|
|||||||
Script runs all from the server as the user running it. Kent [ 07. November 2003, 16:54: Message edited by: kdyer ] |
||||||||
|
|
|||||||
I pushed mine out via scheduled task. However, you can also use an admin script to install it on all computers. |
||||||||
|
|
|||||||
Thanks Jens, ill try the admin script. Once last thing though, I have tried to retreive info on from technet folloing this link TechNet: W32Time Network Time Service for Windows NT 4.0 But I think Bill got something against me and has moved the link and I cant find where it is. Does anyone have the necceseary files for w32time and some info? |