Quantcast
Channel: Active questions tagged windows - Super User
Viewing all articles
Browse latest Browse all 9162

How to pass arguments from a windows 10 scheduled task to a powershell script onLock and onUnlock events/triggers

$
0
0

I am trying to setup the following scenario using a windows 10 task scheduler.

  1. A logged in user locks or unlocks the workstation
  2. 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!


Viewing all articles
Browse latest Browse all 9162

Trending Articles