05-26-2018 11:04 AM
Hi community
I am looking to change the time and date of the computer that runs my application (exe) programatically. In win XP through Win7 seems that the System Exec.vi does a perfect job. I.e: I just send the command "time HH:MM:SS".
I have difficulty in getting the same operation done under Win10 (enterprise edition). I think the issue is with the elevation rights level.
I have changed the flag in the register EnableLUA which seemed to have helped at least the basic CMD prompt to work for the same command without having to 'run as administrator'.
I have also created a manifest file to include in the .exe according to this post although step 6 did not work.
I should mention that the account I am using is admin - not password protected, and I need it that way, so that the application starts automatically, with minimum give away re OS.
Any help would be greatly appreciated,
thanks
Yannis
05-26-2018 11:05 AM
Hi community
I am looking to change the time and date of the computer that runs my application (exe) programatically. In win XP through Win7 seems that the System Exec.vi does a perfect job. I.e: I just send the command "time HH:MM:SS".
I have difficulty in getting the same operation done under Win10 (enterprise edition). I think the issue is with the elevation rights level.
I have changed the flag in the register EnableLUA which seemed to have helped at least the basic CMD prompt to work for the same command without having to 'run as administrator'.
I have also created a manifest file to include in the .exe according to this post although step 6 did not work.
I should mention that the account I am using is admin - not password protected, and I need it that way, so that the application starts automatically, with minimum give away re OS.
Any help would be greatly appreciated,
thanks
Yannis
05-28-2018 12:27 AM
If you are running Windows 10 Enterprise, your computer's time setting may be restricted by Group Policy settings, so you may not be able to do it at all.
05-28-2018 03:56 AM
thanks for the reply Paul.
I am able to change the time via the CMD prompt - the LV application is trying to send the same command but fails.
Should the rights not be the same regardless of the method of input?
thanks,
yannis