Skip to content

Add HP USB-C and Thunderbolt dock detection with serial extraction and SnipeIT user lookup#19

Draft
Copilot wants to merge 5 commits into
mainfrom
copilot/usb-c-dock-detection
Draft

Add HP USB-C and Thunderbolt dock detection with serial extraction and SnipeIT user lookup#19
Copilot wants to merge 5 commits into
mainfrom
copilot/usb-c-dock-detection

Conversation

Copy link
Copy Markdown

Copilot AI commented Apr 15, 2026

New standalone script to detect connected HP USB-C and Thunderbolt docks, extract their serial numbers, and look up the assigned user from SnipeIT.

Detection strategy

Built from evidence collected on physical systems (Issues #13, #14, #18, #24):

  • PID-based: Matches HP VID 03F0 against known dock PIDs — 046B (G5), 0A6B (G2), 0269 (Thunderbolt)
  • Name-based fallback: Catches unknown dock models via HP.*(USB|Thunderbolt).*Dock FriendlyName regex
  • DisplayLink: Detects HP docks using DisplayLink chipset (VID 17E9, observed on PC1486)

Serial extraction

Serials live on the parent USB Composite Device InstanceId (no &MI_ segment):

USB\VID_03F0&PID_046B\11AD1D0AEFCA3E08291C0B00
                       ^^^^^^^^^^^^^^^^^^^^^^^^ serial

Child interface devices (&MI_XX) are filtered out. Connected (OK) vs. remembered-but-disconnected (Unknown) docks are reported separately.

SnipeIT integration

  • Looks up PC by BIOS serial via Get-CimInstance Win32_BIOS, falls back to hostname search
  • Retry-on-error pattern matches AssetSelfReport.ps1
  • Gracefully handles missing SnipeitPS module, BIOS query failures, unassigned assets
  • Config file is optional — dock detection works standalone without it

Copilot AI linked an issue Apr 15, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Add USB-C dock detection functionality to script Add HP USB-C dock detection with serial extraction and SnipeIT user lookup Apr 15, 2026
Copilot AI requested a review from kylegordon April 15, 2026 15:48
@kylegordon
Copy link
Copy Markdown

@copilot thunderbolt evidence has been added #24

Copy link
Copy Markdown
Author

Copilot AI commented Apr 30, 2026

@copilot thunderbolt evidence has been added #24

Added HP Thunderbolt Dock support (PID 0269) as a known dock PID in dfa45bd. The Thunderbolt dock's parent composite device (USB\VID_03F0&PID_0269\201604140001) will now be detected and its serial extracted. Also broadened the name-based fallback regex to catch HP.*Thunderbolt.*Dock in addition to USB docks.

Copilot AI changed the title Add HP USB-C dock detection with serial extraction and SnipeIT user lookup Add HP USB-C and Thunderbolt dock detection with serial extraction and SnipeIT user lookup Apr 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

USB-C Dock Detection

2 participants