Skip to content

Instantly share code, notes, and snippets.

@x1unix
Last active May 8, 2021 21:42
Show Gist options
  • Save x1unix/0c8013fa8d86b09c560c4e2308e3c717 to your computer and use it in GitHub Desktop.
Save x1unix/0c8013fa8d86b09c560c4e2308e3c717 to your computer and use it in GitHub Desktop.
[PWSH] Find XInput-compatible devices

Get-XInput

Queries all XInput devices using WMI

Based on MSDN article

Get-WmiObject -Query "Select Name, Description, DeviceID from Win32_PNPEntity" | Where-Object {$_.DeviceID.Contains("IG_")} |Select-Object Name, DeviceID
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment