I'm using Ubuntu and Windows on the same machine, and always have problem with incorrect time when booting into Windows, so I like to execute w32tm /resync
at startup.
So I'm trying to put this command into a .bat file and place it in the startup folder, but this command requires administrator privilege, so please guide me what to do to make this work.
Thanks.
I'm using Windows 7 Ultimate edition.
Schedule it in Task Schedule and tick the required boxes for elevation or run it as system.
Just check that box as you set up the task and you are all set!
Place the full path to the command or bat file into the registry under HKCU\Software\Microsoft\Windows\CurrentVersion\RunOnce
It will run under the system account
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With