auto update the date and time in a shared file when system locked or unlocked using shortc

Hi Team,

I need your help to auto update the date and time in the excel file for all the users or the listed some users (who are in the network). The file which is located in the shared folder. the date and time should be capture when user locked or unlocked the system using windows key +L or ctrl+shift+del and lock the system.

Please help, if its not possible please let us know if their any alternative way.... kindly do the needfullll