powershell code to remotely logg off a user session when a particular event ID is encountered in system logs

157 views Asked by At

I am trying to write a script to remotely log off a user when a particular event ID is encountered. If a user connects a usb drive then event ID 2003 is generated in logs. How can I remotely log off that particular user remotely through powershell?

0

There are 0 answers