Complete newbie to powershell and scripting, here.
I have figured out how to set date and time through powershell using the set-date cmdlet.
However, I can't figure out how to execute the script with admin rights before Windows logon or anyway as soon as possible in the boot process.
(I need to keep a VM frozen in time, however it seems that Hyper-V doesn't really honor the time sync settings, or Windows has a way around it. Just in case: yes, I also disabled automatic time sync within Windows and even blocked time.windows.com through the hosts file just in case)
Any hints? Thanks