Create a PowerShell cmdlet too add/edit/remove duplicate hardware identifiers
New-CMDuplicateHardwareIdentifier
Set-CMDuplicateHardwareIdentifier
Remove-CMDuplicateHardwareIdentifier
Please create cmdlets to add/edit/remove duplicate hardware identifiers. We have a large organization and those pesky Lenovo Yoga's get a USB to Ethernet dongle with each one. We have over 500 dongles currently, and I don't see a way to automate importing those MAC addresses. Thanks!


Thanks for your feedback and suggestions, updating status to started.
We added these CmdLets in our 1910 release:
New-CMDuplicateHardwareIdGuid
New-CMDuplicateHardwareIdMacAddress
Remove-CMDuplicateHardwareIdGuid
Remove-CMDuplicateHardwareIdMacAddress
More details here:
https://docs.microsoft.com/en-us/powershell/sccm/1910-release-notes?view=sccm-ps
Please try them out and share any feedback you may have, then I’ll likely close this item with our 2002 release.
10 comments
-
Thank you for your feedback on this. We will look at closing the remaining gaps here in a future release.
-
Sean Culligan commented
I looked at the cmdlets and do not see a way to get the list of current duplicate hardware ids. There only appears to be a way to add and remove from the list but not view it.
I think it would be good to have the following
Get-CMDuplicateHardwareIdGuid
Get-CMDuplicateHardwareIdMacAddress -
David Richmond commented
I really very much think this should exist, but in the meantime --
set-wmiinstance -Namespace root\sms\Site_### -Class SMS_CommonMacAddresses -ComputerName <yourmamangementpointhostname> -Arguments @{MACAddress='##:##:##:##:##:##'}
or, just to verify:
get-wmiobject -Namespace root\sms\Site_### -Class SMS_CommonMacAddresses -ComputerName <yourmamangementpointhostname> | select macaddress
-
Dave commented
Adding on to this, a description or comment field would be nice so I can know what the MAC address went to and what site it was at.
-
AJ Beckwith commented
Need a better GUI or scripted method to make this process easier for dealing with multiple MAC addresses to be whitelisted at once.
-
seb cerazy commented
Definitely a must!
-
Anonymous commented
yes please, this needs to be more manageable in larger environments as the smaller form factor devices become more popular!
-
Rolf Røsand commented
Going to give this a vote.
We are starting to get more and more devices in our org that don't have built in network adapters and so we need to use dongles for OSD. With many locations, many dongles will be purchased going forward.Currently i have a script to register all dongles used during OSD so we can manually add them to the "DHI" list, but with it lacking simple copy/paste functionality, getting commands for this so we can automate the adding would be fantastic.
-
Connor Williams commented
I absolutely would love this. Either a Powershell module or a direct csv import option of bulb mac addresses for these USB dongles would be great.
-
Lucas Allen commented
We are in the same boat, adding hundreds of USB Dongle MAC addresses into SCCM one at a time can be VERY time-consuming.