konga-frites
asked on
Altering values in Exchange 2007 by Set-MailContact
@all:
I have now another "problem" with altering existing records.
If I want to change for multiple users one value of a field according the value in an ascii export from another tool.
So the command in the ps I use is this:
Import-Csv d:\import\KES-Liste.csv | ForEach
{
Set-MailContact -Identity $_.Alias -CustomAttribute1 $_.BenutzerdefiniertesAttr ibut1
}
the values in the KES-Liste.csv are this
Nachname,Vorname,Name,Anze igename,Ex terneEMail Adresse,Al ias,Organi sationsein heit,Benut zerdefinie rtes Attribut 1,Benutzerdefiniertes Attribut 2,Benutzerdefiniertes Attribut 3
Sample_N,Sample_SN,KES Sample_N Sample_SN,KES Sample_N Sample_SN,Sample_N@hotmail .com,KOESa mple_NSamp le_SN,OU_S ample,Unit _1,Unit_2, Unit_3
With that I get the following hint:
WARNUNG: Der Befehl wurde erfolgreich abgeschlossen, es wurden jedoch keine
Einstellungen von 'domain.local/OU_Sample/KE S Sample_N Sample_SN' geändert.
Which means something like:
Warning: The command was completed successful, although no settings of 'domain.local/OU_Sample/KE S Sample_N Sample_SN' were changed.
No more hints from the ps why nothing was changed. The values in the csv are definitely different to them in the AD.
Some more hints????
Tanks a lot in advance.
I have now another "problem" with altering existing records.
If I want to change for multiple users one value of a field according the value in an ascii export from another tool.
So the command in the ps I use is this:
Import-Csv d:\import\KES-Liste.csv | ForEach
{
Set-MailContact -Identity $_.Alias -CustomAttribute1 $_.BenutzerdefiniertesAttr
}
the values in the KES-Liste.csv are this
Nachname,Vorname,Name,Anze
Sample_N,Sample_SN,KES Sample_N Sample_SN,KES Sample_N Sample_SN,Sample_N@hotmail
With that I get the following hint:
WARNUNG: Der Befehl wurde erfolgreich abgeschlossen, es wurden jedoch keine
Einstellungen von 'domain.local/OU_Sample/KE
Which means something like:
Warning: The command was completed successful, although no settings of 'domain.local/OU_Sample/KE
No more hints from the ps why nothing was changed. The values in the csv are definitely different to them in the AD.
Some more hints????
Tanks a lot in advance.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
https://www.experts-exchange.com/questions/27975218/Exchange-2007-Userdefines-Parameters-in-powershell.html?anchorAnswerId=38755180#a38755180