Skip to main content

Repair-DuplicateSusClientID

SYNOPSIS​

Removes SusClientID registry key on the local or remote computer.

SYNTAX​

Repair-DuplicateSusClientID [[-ComputerName] <String[]>]
[<CommonParameters>]

DESCRIPTION​

When creating a computer from a template (virtual disc) the SusClientID isn't changed and will result in WSUS only having one object for all the computers created. This function clears the SusClientID from the registry on the local or remote computer(s) so when syncing with WSUS a new SusClientID will be created. The first initial sync with WSUS typically fails. It may take several minutes for the computer to sync appropriately with WSUS.

EXAMPLES​

EXAMPLE 1​

Repair-DuplicateSusClientID

Runs Repair-DuplicateSusClientID to fix a duplicate SusClientID on the local computer.

EXAMPLE 2​

Repair-DuplicateSusClientID -ComputerName Server1

Runs Repair-DuplicateSusClientID but with the ComputerName parameter. In this example, Server1 is a remote computer.

PARAMETERS​

-ComputerName​

Specifies the name of one or more computers.

Type: String[]
Parameter Sets: (All)
Aliases: Host, Name, Computer, CN

Required: False
Position: 1
Default value: "$env:COMPUTERNAME"
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters​

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS​

OUTPUTS​

System.String​

NOTES​

ALIASES​

None.

PLATFORM APPLICABILITY​

Windows only. The platform-aware loader does not export this command on Linux or macOS.

POWERSHELL COMPATIBILITY​

See PowerShell compatibility for the supported runtime policy. PowerShell 7.6 LTS is preferred.

https://docs.keldor.dev/powershell/keldor/Repair-DuplicateSusClientID