I am trying to setup the following scenario using a windows 10 task scheduler.
- A logged in user locks or unlocks the workstation
- A powershell script gets triggered and the PC-NAME and a USER_NAME of a user who's locking/unlocking workstation parameters.
How or where one can find some documentation or example of how to accomplish #2?
I know how to trigger batch files or powershell scripts, but cannot figure out a way to grab parameters from the triggered task/event.
Any help would be appreciated!