Windows 10IOT Users change system time

Boyd Mills 1 Reputation point

As per previous post:

In my application it is IMPERITIVE that Users be able to change the system time.
This has been available in Windows 2000, Windows XP, Windows Vista, Windows 7.

What is the means of accomplishing this?

Windows 10IOT is an embedded system. There is no "request Administrator Password" capability.

Please advise.

Windows 10 Security
Windows 10 Security
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Security: The precautions taken to guard against crime, attack, sabotage, espionage, or another threat.
2,209 questions
.NET Internet of things
.NET Internet of things
.NET: Microsoft Technologies based on the .NET software framework.Internet of things: A concept that aims to extend the benefits of the regular internet, including constant connectivity, remote control ability, and data sharing, to goods in the physical world.
22 questions
{count} votes

5 answers

Sort by: Most helpful
  1. Daisy Zhou 13,021 Reputation points Microsoft Vendor

    Hello @Boyd Mills ,

    Thank you for posting here.

    Have you tried the method in the link you provided via UI?

    If so, can you change the system time on Windows 10IOT?

    I am sorry, I did not know the code you mentioned.

    Should you have any question, please feel free to let us know.

    Best Regards,
    Daisy Zhou

  2. Boyd Mills 1 Reputation point

    From the command prompt:


    And the following source code:

    include "stdafx.h"

    include "windows.h"

    int _tmain(int argc, _TCHAR* argv[])
    SYSTEMTIME SystemTime;
    if (!SetLocalTime(&SystemTime))
    printf("setltime error %d", GetLastError());
    return 0;

  3. Boyd Mills 1 Reputation point

    Hi Daisy Zhou
    Thank you for the response.
    The Win10IOT machine is run as an industrial controller.
    GUI is not guaranteed.
    The applications must run as a regular user for security purposes.
    However, the applications MUST be able to change the system time without human intervention.
    This was easily done in Windows 2000, XT, Vista and 7 by allowing USERS to change time in the Local Security Policy.
    They run in WORKGROUPS, not in a DOMAIN.
    There is no guarantee of a "INTERNET TIME SERVER" to synch with.

    Please advise.

  4. Daisy Zhou 13,021 Reputation points Microsoft Vendor

    Hello @Boyd Mills ,

    By default, the normal user can not be able to change the system time.

    If you can edit the following policy via local group policy editor and add the regular users or user group.

    Computer Configuration\Windows Settings\Security Settings\Local Policies\User Rights Assignment\Change the system time

    Then check if the the regular user can change the system time.

    Hoep the information above is helpful.

    Best Regards,
    Daisy Zhou

  5. Boyd Mills 1 Reputation point

    Hi Daisy Zhou,

    Seems the correct answer is

    1. as you pointed out
    2. PLUS the same for changing time zone - because they are sort of joined at the hip
    3. PLUS Replace a process level token