User Session Audit
Summary
This script will create the SQL table “@plugin_proval_usersessions” if it does not exist, then run PowerShell to audit the current active sessions on a target machine and update the details in the custom table.
Time Saved by Automation: 5 Minutes
Sample Run
Dependencies
- @plugin_proval_usersessions (Table)
- Windows - Current User Sessions
Variables
@psout@
-> Logs the output of PowerShell
Process
- This script creates the custom table @plugin_proval_usersessions if it doesn't already exist.
- Runs a PowerShell script to audit the user session.
- Logs the output of PowerShell to Automate's script logs.
Output
- Script log