Get-CMDuplicateHardwareIdGuid

View duplicate hardware identifiers by GUID.

Syntax

Get-CMDuplicateHardwareIdGuid
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [<CommonParameters>]
Get-CMDuplicateHardwareIdGuid
   -Id <String>
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [<CommonParameters>]

Description

Use this cmdlet to view duplicate hardware identifiers by GUID. Configuration Manager ignores these GUIDs for PXE boot and client registration. For more information, see Manage duplicate hardware identifiers.

Note

Run Configuration Manager cmdlets from the Configuration Manager site drive, for example PS XYZ:\>. For more information, see getting started.

Examples

Example 1: View all GUIDs

This example displays all duplicate hardware GUIDs from the site.

Get-CMDuplicateHardwareIdGuid | Select-Object SMBIOS_GUID

Example 2: Test for a specific GUID

The following example script checks if a specific GUID is found, and then writes a message based on the result.

$guid = "AB83D231-8C12-9413-FEBA-C0F9888B9290"

if ( Get-CMDuplicateHardwareIdGuid -Id $guid ) {
  Write-Host $guid "exists in the site"
} else {
  Write-Host $guid "doesn't exist!"
}

Parameters

-DisableWildcardHandling

This parameter treats wildcard characters as literal character values. You can't combine it with ForceWildcardHandling.

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ForceWildcardHandling

This parameter processes wildcard characters and may lead to unexpected behavior (not recommended). You can't combine it with DisableWildcardHandling.

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Id

Specify a duplicate hardware ID. The format of this value is a standard GUID, for example, "feff51c2-9266-4da7-adec-4252c56a1713".

Type:String
Aliases:DuplicateId, DuplicateHardwareId
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None

Outputs

IResultObject[]

IResultObject

Notes

This cmdlet returns the SMS_CommonSmbiosGuids WMI class object.