There can be many variations, which I tried to account for in the following (not tested):
$Users = Get-ADUser -Filter 'EmployeeID -Like "*2323232323*" ' -Properties EmployeeID
ForEach ($User In $Users)
{
$NTName $User.sAMAccountName
$ID = $User.employeeID.Replace("|2323232323", "").Replace("2323232323|", "").Replace("2323232323", "-")
If ($ID -eq "-") {Set-ADUser -Identity $NTName -Clear EmployeeID}
Else (Set-ADUser -Identity $NTName -EmployeeID $ID}
}
It helps to only retrieve users whose emploeeID value has the string to be removed. Assuming the pipe character is a delimiter, it may also need to be removed. But if there is only one value (no delimiter), you need to use -Clear, since you cannot assign
an empty string to any attribute.
Edit: I just noticed your ID value has "2323232323" (10 chars), but you want to remove "23232323" (8 chars). I assume a typo.
Richard Mueller - MVP Enterprise Mobility (Identity and Access)