Jump to content
CarForums

Windows on device disconnect


Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...