Windows 10IOT Users change system time

Boyd Mills 21 Reputation points
2021-03-02T18:03:38.773+00:00

As per previous post:

https://social.technet.microsoft.com/Forums/en-US/e4b338a8-110d-4cfb-9e6e-e0376de3d7f3/windows-10-set-time-privilege-missing?forum=win10itprogeneral

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,753 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.
28 questions
{count} votes

5 answers

Sort by: Most helpful
  1. Daisy Zhou 18,701 Reputation points Microsoft Vendor
    2021-03-04T08:46:29.767+00:00

    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

    0 comments No comments

  2. Boyd Mills 21 Reputation points
    2021-03-04T16:52:55.29+00:00

    From the command prompt:

    74403-image.png

    And the following source code:

    include "stdafx.h"

    include "windows.h"

    int _tmain(int argc, _TCHAR* argv[])
    {
    SYSTEMTIME SystemTime;
    GetLocalTime(&SystemTime);
    if (!SetLocalTime(&SystemTime))
    {
    printf("setltime error %d", GetLastError());
    }
    return 0;
    }
    YIELDS:
    74348-image.png


  3. Boyd Mills 0 Reputation points
    2021-03-09T15:47:26.647+00:00

    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.
    Boyd

    0 comments No comments

  4. Daisy Zhou 18,701 Reputation points Microsoft Vendor
    2021-03-10T07:25:29.76+00:00

    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
    76175-gp1.png

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

    Hoep the information above is helpful.

    Best Regards,
    Daisy Zhou

    0 comments No comments

  5. Boyd Mills 0 Reputation points
    2021-03-11T16:30:56.683+00:00

    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

    76845-image.png

    0 comments No comments