# How to do USB mapping for Hackintosh in Windows with USBToolBox

Canonical: https://kextcache.com/guide-how-to-do-usb-mapping-for-hackintosh-in-windows/
Published: 2023-11-10T08:36:28+05:30
Updated: 2026-11-18T09:00:00+05:30
Author: Ayush Sahay Chaudhary

*Updated 18 Nov 2026: added USBToolBox.kext 1.2.0 for macOS Tahoe, corrected the 15-port limit and the USB power claim, replaced the advice to turn off your antivirus, fixed the forgotten-port steps and added the missing Type-C port types.*

On a [Hackintosh](/what-exactly-is-hackintosh-in-general/), USB mapping tells macOS which of your motherboard's USB ports exist, what type each one is and which ones to ignore, so every USB controller stays within macOS's limit of 15 ports. You can do it in Windows before you install macOS: run USBToolBox, plug a USB 3 drive into every port, build `UTBMap.kext` and put it in your OpenCore EFI with USBToolBox.kext 1.2.0 or newer.

In this guide, we'll cover how to do USB mapping on Windows with the help of a tool called USBToolBox by [@dhinakg](https://github.com/dhinakg), which is inspired by another cool tool called USBMap by [@corpnewt](https://github.com/corpnewt). The Windows tool hasn't changed since release 0.2 in June 2023, and its README still calls it a beta. The USBToolBox kext it pairs with got macOS Tahoe support in version 1.2.0 (June 2025), and USBMap was last updated in December 2025. We prefer USBToolBox over other methods because it runs on Windows 10 or 11 **(but it has to be 64-bit)**, which means we can do all this way before getting our hands dirty with OpenCore configuration and before installing macOS.

> **Tested by our setup on 17 Nov 2026**
>
> - What we did: inspected a working USB map on a Hackintosh with read-only Terminal commands. We did not run the Windows tool again for this update; steps 1 to 13 below are from our own run in November 2023.
> - On: Intel Core i9-9980HK, macOS 26.7.3 (25G342), a 30 Aug 2026 pre-release build of OpenCore 1.0.8, USBToolBox.kext 1.2.0
> - When: 17 Nov 2026
> - Not tested: running the Windows tool again, Hiren's BootCD PE, a DW1830 card, a native `USBMap.kext` on Tahoe, a fresh install, and the EFI folder, `XhciPortLimit` and kext order in config.plist (the EFI was not mounted)

## Required tools and prerequisites

- Windows 10 or 11, 64-bit, installed, or a bootable Windows PE stick such as Hiren's BootCD PE
- Internet connection
- Patience
- USB 3 flash drive
- A USB-C device or adapter, if your board has Type-C ports
- A USB mouse or keyboard, only on older boards with OHCI or UHCI controllers (the tool needs a USB 1.1 device to see those ports)

## Why USB mapping is important

USB mapping is one of the most important stepping-stones when [building an Intel Hackintosh with OpenCore](/guide-make-intel-700-hackintosh-build-using-opencore-bootloader/). Without a proper USB map, macOS won't see the USB ports on your custom-built Mac the way it should, for several reasons:

- Since OS X 10.11, macOS has a limit of 15 ports per USB controller. Intel Z170 and newer chipsets declare up to 26 ports in total, counting ports the firmware lists even when nothing is wired to them, so without a map some of your real ports may not work.
- macOS guesses port types badly. It can't tell USB 2, USB 3 and Type-C ports apart, so ports run below their rated speed or don't work at all, and Bluetooth, Handoff, sleep and hot-plug can break too.
- Lifting the limit with OpenCore's `XhciPortLimit` quirk instead of mapping can cause data corruption, and OpenCore's own docs say to avoid it.

The map doesn't handle USB power. On Skylake and newer SMBIOS, USB power for sleep and wake comes from a USBX device (SSDT-EC-USBX or SSDT-USBX), which our [Hackintosh ACPI and SSDT guide](/advanced-hackintosh-acpi-a-deep-dive-into-ssdt-selection-and-configuration/) covers.

## What the USBToolBox kext adds

The map you build in Windows needs the USBToolBox kext, a [macOS kernel extension](/what-are-kexts-in-macos-or-hackintoshes/), to load. According to its [README](https://github.com/USBToolBox/kext), the kext:

- Removes the need for controller renames in ACPI patches (part of your OpenCore config)
- Doesn't hardcode any port maps, unlike USBInjectAll
- Overrides any built-in Apple USB maps attached based on SMBIOS and controller name
- Ignores the ACPI port definitions, which replaces SSDT-RHUB

It does not patch the 15-port limit, so the map you build still has to keep each controller at 15 ports or fewer.

## Let's start USB mapping for our system

Steps 1 to 13 come from our own November 2023 run of USBToolBox 0.2 on Windows 11 23H2. We haven't run the Windows tool since, but on 17 Nov 2026 we checked each step against the tool's [README](https://github.com/USBToolBox/tool) and its source code at tag 0.2. Where a step adds something we didn't do in that run, it says so.

1. Bootup your Windows (in this guide we’ll be using Windows 11 23H2) or if you don’t have Windows installed quickly flash **[Hiren’s BootCD PE](https://www.hirensbootcd.org/)** on your Flash Drive.

   Windows 11 23H2 no longer gets updates, and any current 64-bit Windows 11, such as 25H2 or 26H2, works the same way. Windows 10 still runs the tool, but Microsoft ended its support on 14 Oct 2025.

   The current build, Hiren's BootCD PE x64 v1.0.8, is based on Windows 11 PE x64, is meant for computers that support UEFI booting and needs at least 4 GB of RAM. Hiren's [USB booting page](https://www.hirensbootcd.org/usb-booting/) says to write the ISO with Rufus using the MBR partition scheme, FAT32 (Large FAT32 for drives of 32 GB and up) and Dual UEFI/BIOS mode (Alt+E). The USBToolBox README says Windows PE works, but device names may be less descriptive.

   *From the official docs: [Hiren's BootCD PE USB booting](https://www.hirensbootcd.org/usb-booting/), checked 17 Nov 2026. Not tested by us.*
2. Open the USBToolBox [releases page on GitHub](https://github.com/USBToolBox/tool/releases) and download `Windows.exe` from release 0.2. Release 0.2 (10 Jun 2023) is still the latest. The same release also has `Windows.zip`, the same tool without the self-extracting `.exe`, which helps if your antivirus objects (see step 4).  

   ![USBToolBox 0.2 release page on GitHub with Windows.exe marked in the assets list](/wp-content/uploads/2023/11/Screenshot-2023-11-10-044211.png)
3. Navigate to the `Windows.exe` file and open it. We ran it with **Run as administrator**. The README doesn't say administrator rights are required.  

   ![Windows File Explorer context menu on Windows.exe with Run as administrator highlighted](/wp-content/uploads/2023/11/Screenshot-2023-11-10-044728.png)
4. If the file runs, you'll be greeted by a terminal with a screen like this. If Windows Defender or another antivirus flags it, don't turn your protection off. The README's fix is to whitelist the download or use `Windows.zip` instead. If the tool crashes while discovering ports, two open GitHub issues ([#65](https://github.com/USBToolBox/tool/issues/65) and [#73](https://github.com/USBToolBox/tool/issues/73)) report the same thing with no fix yet, as of 17 Nov 2026.  

   ![USBToolBox 0.2 main menu in a Windows terminal: Saved Data: None, with options D Discover Ports, S Select Ports and Build Kext, C Change Settings and Q Quit](/wp-content/uploads/2023/11/Screenshot-2023-11-10-045653.png)
5. Now press **D** and **Enter** to discover the USB ports on your motherboard.  

   ![USBToolBox main menu with D typed at the Select an option prompt](/wp-content/uploads/2023/11/Screenshot-2023-11-06-000528.png)
6. You'll be greeted by another screen that refreshes every 5 seconds ("Waiting 5 seconds") to pick up new USB info.  

   ![USBToolBox Port Discovery screen listing 22 ports on an Intel USB 3.1 xHCI controller, with the ports in use shown in green](/wp-content/uploads/2023/11/Screenshot-2023-11-06-000557.png)
7. Grab a USB 3.0 Flash Drive & start plugging into every USB port of your System.  
   Plug into 1 USB Port – Pull out the USB Flash Drive and Plug into Other, after unplugging you’ll see highlighted text in the terminal (this means the application detected it). after doing plug-unplug USB ritual you’ll see a screen something like this.  

   The application will automatically detect both USB 2.0 & 3.0 if you plug the USB 3.0 Flash Drive into the USB 3.0 USB Port.  

   The tool shows the port with a device in it right now in green and ports you used earlier in cyan, though the colours can look different in your terminal. On Windows, one device per USB 3 port is enough because the tool detects companion ports. For Type-C ports, plug a USB-C device in both ways, since you'll need that to pick the right type in step 12. On older boards with OHCI or UHCI controllers, also plug a USB 1.1 device, such as a mouse or keyboard, into each port.

   ![USBToolBox Port Discovery after plugging a drive into each port: used ports highlighted, including a BCM2045A0 Bluetooth device on port 10 operating at USB 1.1](/wp-content/uploads/2023/11/Screenshot-2023-11-10-055718.png)
8. Now go back by typing **B** and then **Enter** to go to the main screen.  

   You'll see **Saved Data: Loaded**, which means the application grabbed all the USB info. It saves it as `usb.json` next to `Windows.exe`.  

   ![USBToolBox main menu showing Saved Data: Loaded and a new P Delete Saved USB Data option](/wp-content/uploads/2023/11/Screenshot-2023-11-10-060051.png)
9. Now go to **Select Ports and Build Kext** by pressing **S** and then **Enter**.  

   You'll be greeted by this screen, where you can see which port is a companion to which.  

   ![USBToolBox Select Ports and Build Kext screen: 12 of 22 ports selected on the Intel controller, each port with its type and companion port, and the K, A, N, P, D and T options](/wp-content/uploads/2023/11/Screenshot-2023-11-10-060457.png)
10. The tool has already selected only the ports that had a device in them, or whose companion port did. As a precaution, press **D** and then **Enter** to disable all empty ports (*assuming you plugged your flash drive into every USB port of your motherboard and cabinet*).  

    Check the port count after each controller's name. It shows as selected/total ports (12/22 in our screenshot) and has to be 15 or less for every controller. The count turns red above 15, but the tool still lets you build the kext, so check each controller yourself.  

    *If you forgot a port:* press **B** to go back to the main menu, press **D** to discover again, put the flash drive into the forgotten port for about 10 seconds, then press **B** and **S** to come back to this screen. The saved data keeps your other ports, so there's no need to plug into every port again. A port that was unselected the first time stays unselected, though, so press **P** (Enable All Populated Ports) or type the port's number and press **Enter** to select it.  

    *From the official docs: USBToolBox [source code at tag 0.2](https://github.com/USBToolBox/tool/tree/0.2), read on 17 Nov 2026. Not tested by us.*
11. **<mark>\[IMPORTANT\] \[Broadcom / Intel Wi-Fi / BT / Combo Users\]:</mark>**  
    If you don’t have PCIe WiFi/ BT Combo skip to the next step.  

    Make sure Wi-Fi and Bluetooth work in Windows first. Without a driver, some of the device's details are missing and the tool lists it as unknown. Try Windows Update or the card maker's driver, and use [**SDI Lite**](https://sdi-tool.org/) (Snappy Driver Installer, free and GPL v3) as a fallback.  

    In our case (November 2023), we had a Broadcom WiFi / BT Combo DW1830 installed on our PCIe lane which is connected to the internal USB header (means connected directly to the motherboard), so we had to manually map it to the Internal Port as macOS expects It.  

    In the Screenshot attached below, you can see **BCM2045A0 – operating at USB 1.1** at **Port 10,** and the Port Type is showing as **USB Type A**.  

    ![USBToolBox select screen with T:10:255 typed at the prompt to set port 10, the BCM2045A0 Bluetooth port, to Internal](/wp-content/uploads/2023/11/Screenshot-2023-11-10-061319.png)  

    So to map it to the Internal Port We have to type,  

    *From the official docs: [USBToolBox TYPES.md at tag 0.2](https://github.com/USBToolBox/tool/blob/0.2/TYPES.md). Typed in our November 2023 run; not run again in 2026.*

    `T:10:255`  

    **T** means **Type**  
    **10** is our **Port Number**  
    **255** is our **Port Type** (255 means Internal)  

    then Press **Enter**.  
    Now, You’ll see it’ll be listed as Internal.  

    ![Port 10 now listed as Internal in USBToolBox, with the BCM2045A0 device operating at USB 1.1](/wp-content/uploads/2023/11/Screenshot-2023-11-10-064558.png)

    Dortania lists type 255 for internal USB ports like Bluetooth, and it matters for Handoff. With **Binding companions** on (the default), the companion port gets the same type. If your card is a DW1830, see our [Broadcom Wi-Fi guide for Sonoma, Sequoia and Tahoe](/broadcom-wifi-macos-sonoma-sequoia-tahoe/) for getting its Wi-Fi working on current macOS.
12. If you want to define any port manually after running the discovery, like  
    *my port 17 is showing as USB 3 but it is actually USB Type C*  
    you can do it right here.  

    *From the official docs: [USBToolBox TYPES.md at tag 0.2](https://github.com/USBToolBox/tool/blob/0.2/TYPES.md) and Dortania's [manual USB mapping page](https://dortania.github.io/OpenCore-Post-Install/usb/manual/manual.html), checked 17 Nov 2026. Not tested by us.*  

    Type: **T:17:9** then press **Enter**.  
    Here, **T** means **Type**,  
    **17** is your **Port Number**  
    and **9** is your **Port Type** (in this case USB Type-C with switch).  

    | Port type | Use it for |
    |---|---|
    | 0 | USB 2 Type-A |
    | 3 | USB 3 Type-A |
    | 8 | Type-C that only runs at USB 2 |
    | 9 | Type-C with switch: the port number stays the same when you flip the plug |
    | 10 | Type-C without switch: the port number changes when you flip the plug |
    | 255 | Internal, such as Bluetooth |

    Just type **T** : **Port number** : **Port Type** (*NO SPACES*). You can set several ports at once with a comma-separated list, for example `T:1,2,3:9`. Press **T** on its own to show the full list of types.
13. Now build the **Kext**. Press **K** and then **Enter**.  

    ![USBToolBox Building USBMap screen ending with Done. Saved to the user folder as UTBMap.kext](/wp-content/uploads/2023/11/Screenshot-2023-11-10-070008.png)  

    Our all-new personalised **Kext** called **UTBMap.kext** is generated and placed alongside the application *(the directory where you downloaded that `Windows.exe` file)*. The tool prints "Done. Saved to" followed by the path.  

    The **C** (Change Settings) menu has a "Use Native Classes" option that builds a `USBMap.kext` that doesn't need USBToolBox.kext. On macOS Tahoe, stay with the default `UTBMap.kext`: tool 0.2 writes only the old port keys, and it's USBToolBox.kext 1.2.0 that adds the new ones (step 14). We haven't tested a native map on Tahoe.
14. Now put `UTBMap.kext` into `EFI/OC/Kexts/` along with one more kext called **[USBToolBox.kext](https://github.com/USBToolBox/kext/releases)**, version 1.2.0 or newer:  

    ![Windows File Explorer showing the EFI/OC/Kexts folder with UTBMap.kext and USBToolBox.kext](/wp-content/uploads/2023/11/Screenshot-2023-11-10-070628.png)  

    The version matters on macOS 26 Tahoe, which reads two new port keys, `usb-port-number` and `usb-port-type`. Tool 0.2 writes only the old `port` and `UsbConnector` keys. USBToolBox.kext 1.2.0 (13 Jun 2025, release notes: "Tahoe support (WIP)") copies the old keys to the new ones when it loads on Tahoe, and 1.1.1 doesn't. In [issue #15](https://github.com/USBToolBox/kext/issues/15) the maintainer said in November 2025 that nothing else is needed with 1.2.0.  

    *Remove all other USB-related kexts if you have them: USBInjectAll, other USB maps and `UTBDefault.kext`, which the kext README says must be removed when you map from Windows. On a clean installation there's nothing to remove.*
15. Then open your `config.plist` in [ProperTree](https://github.com/corpnewt/ProperTree) and choose **File > OC Clean Snapshot** (Ctrl+Shift+R, or Cmd+Shift+R on a Mac). It adds both kexts and puts USBToolBox.kext before `UTBMap.kext`, which needs it. A clean snapshot rebuilds ACPI > Add, Kernel > Add, Misc > Tools and UEFI > Drivers from your folders, so on a config.plist you've already tuned, use the plain **OC Snapshot** instead. Keep `XhciPortLimit` off: OpenCore's documentation says it "should be avoided whenever possible". And you're done with USB mapping.

    *From the official docs: [ProperTree source](https://github.com/corpnewt/ProperTree) and the [OpenCore Configuration](https://github.com/acidanthera/OpenCorePkg/blob/master/Docs/Configuration.pdf) reference, checked 17 Nov 2026. Not run by us for this update.*

## Check the map after you boot macOS

Once macOS boots with the new EFI, a few read-only Terminal commands show whether the map loaded.

First, check that USBToolBox.kext loaded and that USBInjectAll didn't:

*Inspected by our setup on 17 Nov 2026: Intel Core i9-9980HK, macOS 26.7.3 (25G342). It printed `com.dhinakg.USBToolBox.kext (1.2.0)` and no USBInjectAll.*

```bash
kextstat | grep -v com.apple | grep -i -E "usbtoolbox|utbmap|usbmap|usbinjectall"
```

`UTBMap.kext` contains no code, so it never shows up in this list, even when the map is working.

Next, list the mapped ports on each USB controller with their types:

*Inspected by our setup on 17 Nov 2026: Intel Core i9-9980HK, macOS 26.7.3 (25G342). It listed 10 mapped ports on the chipset controller and 2 on the Thunderbolt controller's xHCI, and every port had both the old keys (`port`, `UsbConnector`) and the Tahoe keys (`usb-port-number`, `usb-port-type`) with the same values.*

```bash
ioreg -w0 -p IOService -r -c AppleUSBXHCI -d2 -l | grep -E -- '-o (XHC|HS|SS|USR)|"UsbConnector"|"usb-port-type"|"usb-port-number"|"port" ='
```

Count the HS, SS and USR ports under each XHC controller: each controller needs 15 or fewer. On Tahoe, each port should carry `usb-port-type` and `usb-port-number` as well as `UsbConnector`. On the Mac we inspected, the Bluetooth controller (Intel, not the DW1830 from step 11) sits on port HS06, which is mapped as type 255.

To see the devices on each USB bus, open **System Information > USB**, or run:

*Inspected by our setup on 17 Nov 2026: Intel Core i9-9980HK, macOS 26.7.3 (25G342). It listed both USB buses with their drivers and the devices on each.*

```bash
system_profiler SPUSBHostDataType
```

![System Information on macOS Tahoe, USB section: the USB 3.0 bus on the AppleIntelCNLUSBXHCI driver with a USB 2.1 hub, a Bluetooth USB Host Controller, USB storage, a USB 3.2 hub, a Brio 100 webcam and an HP USB-C/A dock](/images/guide-how-to-do-usb-mapping-for-hackintosh-in-windows/system-information-usb.png)

## Frequently asked questions

### Do I need to redo my USB map for macOS Tahoe?

Not if you use `UTBMap.kext` with USBToolBox.kext 1.2.0 or newer. Kext 1.2.0 copies the old port keys to Tahoe's new ones when it loads, and the maintainer said in November 2025 that nothing else is needed with 1.2.0. Its release notes still call Tahoe support "WIP", and [issue #15](https://github.com/USBToolBox/kext/issues/15) was still open on 17 Nov 2026.

### Can I use XhciPortLimit instead of mapping?

OpenCore's documentation says the quirk "should be avoided whenever possible" and that the only valid solution is to limit the ports to 15. OpenCore 1.0.7 improved the quirk's compatibility with Tahoe, but a map made in Windows before you install never needs it.

### Can I map USB ports in macOS instead of Windows?

You can, but the USBToolBox README doesn't recommend it. On macOS the tool can't guess port types or bind companion ports, so you have to plug a USB 2 device and a USB 3 device into every USB 3 port. Release 0.2 has no macOS build, and its release notes say to use 0.1.1 for macOS. If you have to map from macOS, the README points to corpnewt's [USBMap](https://github.com/corpnewt/USBMap), which handles the 15-port limit and has written Tahoe's new port keys since June 2025.

## What's next

This was a wildcard entry in our 2023 Hackintosh series. The OpenCore setup now lives in our [macOS Tahoe Hackintosh guide](/macos-tahoe-hackintosh-guide/), and the SSDTs, including SSDT-EC-USBX for USB power, are in our [Hackintosh ACPI and SSDT guide](/advanced-hackintosh-acpi-a-deep-dive-into-ssdt-selection-and-configuration/). If you have any issues let me know in the comments.

To check your CPU, GPU and Wi-Fi card before you install, see our [Hackintosh compatibility list](/hackintosh-compatibility-is-your-computer-ready-in-2025/).

Check out the 1st post of the series for making macOS USB installers if you missed it. You can use either the Mist or the gibMacOS method.

<a class="embed-card" href="/guide-making-bootable-macos-usb-using-mist/">Create a bootable macOS Tahoe 26 USB using Mist (2026 guide)</a>

<a class="embed-card" href="/guide-to-create-a-bootable-macos-usb-drive-using-gibmacos-tool/">Create a bootable macOS USB drive using gibMacOS (2026 guide)</a>

![Handwritten plan for the kextcache Hackintosh series 2023-24: downloading macOS Sonoma 14.1 and making the bootable USB with Mist (you are here), generating USB kexts by mapping (up next), then installing and configuring OpenCore, setting up the BIOS, installing macOS Sonoma and post-install](/wp-content/uploads/2023/11/IMG_0003.png)

## Changes

- 18 Nov 2026: added the USBToolBox.kext 1.2.0 requirement for macOS Tahoe and a section on checking the map in macOS.
- 18 Nov 2026: corrected the 15-port limit (it applies per controller), moved USB power to SSDT-EC-USBX and replaced "disable your antivirus" with the README's fix.
- 18 Nov 2026: fixed the forgotten-port steps, added port types 8 and 10, and updated the Windows and Hiren's BootCD PE details.
