Benutzer mit den meisten Antworten
Copy sidHistory to msExchMasterAccountSID and msRTCSIP-OriginatorSID attribute

Frage
-
For a AD Migration Szenario I have to copy over the Values from the sidHistory Attribute of each user to the msExchMasterAccountSID and the msRTCSIP-OriginatorSID from the same User.
I do not have have much powershell experience so all my trys are unsuccsessfull :-(Please help.....
Many Thanks
Kind Regards
Harald
Antworten
-
$list = Get-ADUser -filter * -SearchBase "OU=Users,OU=xxx,DC=xxx,DC=xxx" -Properties sidHistory
foreach ($item in $list)
{
$sidstr=$item.sidHistory.Value.ToString()
Set-ADUser $item -Add @{"msRTCSIP-OriginatorSid"=$sidstr}
}This is working now...
msRTCSIP-OriginatorSid must be in quotation marks otherwise it will be treated as an expression.- Als Antwort markiert HarryAT Donnerstag, 17. Februar 2011 14:34
- Als Antwort markiert Denniver ReiningMVP, Moderator Samstag, 19. Februar 2011 14:16
Alle Antworten
-
Hi, try the QUEST AD-cmdlets . If you have trouble with the resulting script, just post it here and we'll see what we can do.
Denniver
-
I want to copy the value from SIDHistory (something like S-1-5-21....) into the msRTCSIP-OriginatorSID Attribute from a user object. For some reason this attribute will expect another format. If i copy the value to msExchMasterAccountSid this working well.
Code which is working for msExchMasterAccountSid:
$list = Get-ADUser -filter * -SearchBase "OU=Users,OU=xxx,DC=xxx,DC=xxx" -Properties sidHistory
foreach ($item in $list)
{
$sidstr=$item.sidHistory.Value.ToString()
Set-ADUser $item -Add @{msExchMasterAccountSid=$sidstr}
}Code which isn't working for msRTCSIP-OriginatorSid:
$list = Get-ADUser -filter * -SearchBase "OU=Users,OU=xxx,DC=xxx,DC=xxx" -Properties sidHistory
foreach ($item in $list)
{
$sidstr=$item.sidHistory.Value.ToString()
Set-ADUser $item -Add @{msRTCSIP-OriginatorSid=$sidstr}
}- Zusammengeführt Denniver ReiningMVP, Moderator Samstag, 19. Februar 2011 14:16 same topic
-
$list = Get-ADUser -filter * -SearchBase "OU=Users,OU=xxx,DC=xxx,DC=xxx" -Properties sidHistory
foreach ($item in $list)
{
$sidstr=$item.sidHistory.Value.ToString()
Set-ADUser $item -Add @{"msRTCSIP-OriginatorSid"=$sidstr}
}This is working now...
msRTCSIP-OriginatorSid must be in quotation marks otherwise it will be treated as an expression.- Als Antwort markiert HarryAT Donnerstag, 17. Februar 2011 14:34
- Als Antwort markiert Denniver ReiningMVP, Moderator Samstag, 19. Februar 2011 14:16