1. Home
  2. Knowledge Base
  3. SureMDM
  4. How to Enable and Disable USB on Windows devices using SureMDM runscript 
  1. Home
  2. Knowledge Base
  3. Windows Management
  4. How to Enable and Disable USB on Windows devices using SureMDM runscript 

How to Enable and Disable USB on Windows devices using SureMDM runscript 

This article is intended to assist IT administrators in restricting USB access on end-user devices to enhance security.

Limiting USB access helps prevent unauthorized data transfers, reduces the risk of malware infections, and protects sensitive organizational information from being copied or compromised through external storage devices.

Prerequisite

Windows – Dual-enrolled

Steps


How to Disable USB devices on a Windows device using a
script

  1. Login to the SureMDM console
  2. Navigate to the jobs section and create a New job
  3. Select Windows as the operating system
  4. Choose the Runscript job and copy and paste the script below. 

reg add “HKLM\SYSTEM\CurrentControlSet\Services\USBSTOR” /v “Start” /t REG_DWORD /d “4” /f

Steps:
How to Enable USB devices on a Windows device using a script

  1. Log in to the SureMDM console
  2. Navigate to the jobs section and create a New job
  3. Select Windows as the operating system
  4. Choose the Runscript job and copy and paste the script below. 

reg add “HKLM\SYSTEM\CurrentControlSet\Services\USBSTOR” /v “Start” /t REG_DWORD /d “3” /f

Conclusion


The IT admins can disable and enable USB devices on the Windows devices using the script and restrict the same. 

Need more help? Here’s how to get help from our experts. 

CONTACT US 

Was this helpful?
YesNo
Updated on June 2026
Need Support?
Can't find the answer you're looking for?
Contact Support