2

Each and every time on startup my computer is showing wrong time. So I started using w32tm /resync /force command to synchronise time from internet. I have configured my system to run this cmd script on startup. But running this script with administrator privileges only could update the time. Please help me to run a batch script to run as administrator on startup.

I also tried making a shortcut to batch, set its properties>advanced to run as administrator and then move the shortcut to the startup directory.But I couldn't bypass the prompt.

Nevin Raj
  • 131

2 Answers2

0

If you don't mind converting your script, use F2KO Software's Bat To Exe Converter (Freeware). Under the Miscellanieous box, check Add administrator manifest before converting the script. Then place a shortcut to the executable in %STARTUP%.

Mr. Mendelli
  • 1,468
-3

Not sure of your expertise and not to sound rude, but I'd like to point out that if your PC is not keeping the correct time on startup, you may have a problem with your CMOS Battery. The OS will look to the CMOS for basic info like this on every boot.

I'm guessing that your BIOS settings were left as default as well when you got it. This is because if you've made changes to BIOS settings, they too would be wiped on every boot, because the CMOS can't hold the info without a battery.

If the problem doesn't lay with the battery, I'd even go so far to say you could have some malware issues. I've seen that a few times before as well.

Good Luck!