# SetToday and SetClock not working on Windows 10

**URL:** <https://clarionhub.com/t/settoday-and-setclock-not-working-on-windows-10/7171>\
**Category:** questions\
**Tags:** windows\
**Created:** [May 17, 2024, 3:45pm UTC](https://clarionhub.com/t/settoday-and-setclock-not-working-on-windows-10/7171 "2024-05-17T15:45:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tosho](https://clarionhub.com/letter_avatar_proxy/v4/letter/t/43a26b/32.png) [@Tosho](https://clarionhub.com/u/Tosho)\
**Post date:** [May 17, 2024, 3:45pm UTC](https://clarionhub.com/t/settoday-and-setclock-not-working-on-windows-10/7171/1 "2024-05-17T15:45:41Z")

</div>

Hi

I use SetToday and SetClock to synchronize workstations' date and time with  
IP Server. After upgrading to Windows 10 it stopped working.  
Is there another way to do that ?

TIA

Tosho Tonchev

---

<div class="post-metadata">

**Author:** ![CarlBarnes](https://clarionhub.com/user_avatar/clarionhub.com/carlbarnes/32/1859_2.png) [@CarlBarnes](https://clarionhub.com/u/CarlBarnes)\
**Post date:** [May 17, 2024, 5:32pm UTC](https://clarionhub.com/t/settoday-and-setclock-not-working-on-windows-10/7171/2 "2024-05-17T17:32:53Z")

</div>

If you read about the API function [SetSystemTime()](https://learn.microsoft.com/en-us/windows/win32/api/sysinfoapi/nf-sysinfoapi-setsystemtime) that Clarion’s SetClock probably calls your program will need to be running as Administrator. Since Windows 7 Microsoft has been securing more functions that do not allow Standard User Rights to call them.

I would setup a separate SetSystemTime.EXE with a manifest that requires Elevation to Admin. I don’t think you can RUN() that you have to use ShellExecute for Elevation. The [UAC Confirmation](https://learn.microsoft.com/en-us/windows/win32/uxguide/winenv-uac) will show.
