Setting Time and Security Issues

  • Thread starter Thread starter Richard B
  • Start date Start date
R

Richard B

I have a small program that I to run at startup to update the system
time and then exits.

When I moved to Vista I discovered this program causes some kind of
security issue. First I log in as an Administrator level user id. If I
run the program as is I get the error that the program could not update
the time. If I do a "run as administrator," then I get the UAC alert
asking me if I want to allow this program to run.

Is there some way to make this thing work without having to click
"Allow" every time I startup my computer?

Thanks,

Richard..
 
Engel said:
Hello Richard,

Easy solution. Maybe you need to check or change the battery for the CMOS

That is a completely absurd reply to what the OP has said.

COMPLETELY absurd.

Get outta here.
 
Have you had any thoughts to using Vista's automatic built in time setting
function. That's what use and it works great.

Bob
 
I found this reply I wrote on 10/28/2001. It is still applicable to, and
works just fine with Vista. I have added what may help for Vista:


"Windows XP, as loaded, automatically updates the system time every 7 days
from one of two time (more choices available in Vista) servers. This
interval can be changed as follows:

Go to Start. Type regedit in the search box.

Highlight regedit in the top pane and open the program.

Using regedit, search (press ctrl/F) for "specialpollinterval" without the
quotes.

Double click on the key in the right screen.

Click on decimal.

You will see that the decimal value is 604800, the number of seconds in 7
days.

Highlight the number to edit this decimal value to any value you desire,
remembering that there are 86400 seconds in one day, 3600 seconds in an
hour.

Click OK

Press F3 to find the next instance of the same key

Do the above for each instance of the value "specialpollinterval".

When you get to the end of the registry, close the regedit window.

Reboot system.

You have now changed the polling interval of when your computer will update
it's internal clock with that of the internet time server.

Cheers!!!"
 
Richard said:
I have a small program that I to run at startup to update the system
time and then exits.

When I moved to Vista I discovered this program causes some kind of
security issue. First I log in as an Administrator level user id. If I
run the program as is I get the error that the program could not update
the time. If I do a "run as administrator," then I get the UAC alert
asking me if I want to allow this program to run.


Changing the system time is an administrative function, and the only
ways around would also entail compromising your system's security.

Is there some way to make this thing work without having to click
"Allow" every time I startup my computer?

Why bother with a 3rd party utility that clearly was not designed to be
compatible with Vista, and whose use compromises your system's security,
when Vista has this same capability built in?

Simply right-click on the clock in the Task Bar's Notification Area,
select Adjust Date/Time > Internet Time > Change Settings > Update Now.
By default, Vista synchronizes the computer's time every 7 days
(604800 "clock ticks," actually). This is generally often enough for
most purposes. If you've some special need to have greater accuracy,
the frequency with which Vista checks the time can be adjusted via a
simple registry edit of two Keys:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config\UpdateInterval

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpClient\SpecialPollInterval

Once these keys have been modified, either reboot the computer, or stop
and restart the W32Time service.

For more detailed information:

Windows Time Service Tools and Settings: Windows Time Service
http://technet.microsoft.com/en-us/library/cc773263.aspx



--

Bruce Chambers

Help us help you:


http://support.microsoft.com/default.aspx/kb/555375

They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety. ~Benjamin Franklin

Many people would rather die than think; in fact, most do. ~Bertrand Russell

The philosopher has never killed any priests, whereas the priest has
killed a great many philosophers.
~ Denis Diderot
 
Are you talking about synchronizing with an Internet time server or a local
network server? I'm assuming the former.

You can circumvent UAC for your program by using Task Scheduler as described
in
http://blogs.techrepublic.com.com/window-on-windows/?p=616

Vista has built in clock synchronization which runs daily. (See Date and
Time settings). Is there some reason you need to synch at start up?
 
Back
Top