Hi there,

I am using Win32_Keyboard to identify the plugged in keyboard(s). My problem is now that if someone is using a laptop with docking station is shows up with two keyboards.

 Code:
 
For Each $keyboard In GetObject('WinMgmts:root/cimv2').ExecQuery('select * from Win32_Keyboard', , 48)
	$keyboardLayout = Right($keybItem.Layout,3)
	$keyboard = $keyboardLayout
Next



Does someone know a way to identify if the keyboard is the notebook or the external one?

Chris