Please refer the below script for, Lock Windows workstation. Please run the script as system user and logged user
Categories: Action
---