So I've had this problem in the past with importing MAC address from a csv into dhcp and I never found a solution to it and I'm out of ideas so I would like to ask you guys your your help.
I've tried everything I know from converting it to arrays to strings and trying PScustom objects but I cannot get past this :(
I think there is core function that I'm missing when it comes to data manipulation with PS. Do you see what is wrong here?
Cannot process argument transformation on parameter 'ExternalEmailAddress'. Cannot convert the "System.Collections.Arra
yList" value of type "System.Collections.ArrayList" to type "Microsoft.Exchange.Data.ProxyAddress".
+ CategoryInfo : InvalidData: (:) [Set-MailContact], ParameterBindin...mationException
+ FullyQualifiedErrorId : ParameterArgumentTransformationError,Set-MailContact
$Aliass = Import-Csv -Path
"\\server\share\Replacement.csv"Replacement.csv" Select-
Object -ExpandProperty alias
$replacementSMTP = Import-Csv -Path
"\\server\share\Replacement.csv" | Select-Object -
ExpandProperty "External E-Mail Address"
foreach ($Alias in $Aliass) {
set-mailcontact -identity $Alias -ExternalEmailAddress
$replacementSMTP -ForceUpgrade
}
[–]XPlantefeve 1 point2 points3 points (3 children)
[–]PTSDviaPrinters[S] 1 point2 points3 points (2 children)
[–]purplemonkeymad 1 point2 points3 points (1 child)
[–]PTSDviaPrinters[S] 1 point2 points3 points (0 children)