taniyatmadden Posted July 7 Report Share Posted July 7 Hello, I was wondering if anyone knows if there is a solution/way that says that if you unplugged a USB device with a certain ID, I could set up a script/we to terminate all processes/shut down the PC? Just one of those things I can't seem to use effectively on Google, and I'm wondering if anyone has any ideas. Quote Link to comment Share on other sites More sharing options...
Ryanthurb Posted July 7 Report Share Posted July 7 Check the Microsoft smart card group policy and registry settings Quote Link to comment Share on other sites More sharing options...
LullabySir Posted July 7 Report Share Posted July 7 I just wanna add that one approach is to use scripting languages like PowerShell or batch files to create a custom script that monitors the USB device and triggers a shutdown command when it's disconnected. You can find tutorials and examples on websites like anytechstuff.com, which provide step-by-step instructions. Another option is to use third-party software that offers advanced automation features. These tools often can detect specific device disconnections and perform actions accordingly. Remember to be cautious when making changes to system processes, as it can affect the stability and functionality of your PC. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.