1. Home
  2. Knowledge Base
  3. SureMDM
  4. How to fetch the USB Status values for Windows in SureMDM
  1. Home
  2. Knowledge Base
  3. Windows Management
  4. How to fetch the USB Status values for Windows in SureMDM

How to fetch the USB Status values for Windows in SureMDM

IT administrators can now determine the status of USB connectivity, whether it is enabled or disabled, on Windows devices managed through SureMDM. Knowing the USB status is critical for audit and compliance purposes. Organizations often require USB ports to be disabled to prevent unauthorized data transfer, malware infections, or to meet specific IT security policies.

Purpose

This functionality supports continuous monitoring and enables visibility, which helps in tracking USB status across enrolled Windows devices to ensure adherence to company standards.

Prerequisites

  1. Access to the SureMDM account.
  2. Permission to Account settings, create and apply jobs, and add custom columns.
  3. Windows devices enrolled and managed through SureMDM should be online.
  4. Windows agent version >=6.08.0

Note: USB ports can also be enabled or disabled using a preconfigured script available under RunScripts for the Windows platform within SureMDM.


Steps

  1. Log in to the SureMDM Console.
  2. Navigate to the Settings icon, which is top right corner
  3. Now, click on Account settings
  4. Device Properties → Properties → Custom Device Properties → Add → OK
  1. Fill in the fields as follows:

                  Platform → Windows
                  Key → USB Value
                  Value → String

  1. Check the box “Retrieve Value using Script.
  2. Enter the script below in the given box
  1. Set the Frequency to retrieve the value to 15 minutes.
  1. To display the USB status in the SureMDM device list:
  • Click on the grid icon next to the grid refresh button.
  • Go to Custom Properties.
  • Find and select the key you just created.
  • Click Save.
  1. After 15 minutes, the output is as follows:
    True, if the USB is disabled.
    False, if the USB is enabled.

Need help? CONTACT US

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