Sunday , May 31 2020

Copy and Paste Active Directory Attributes using PowerShell

Active Directory Powershell saves you hours of manual work where in this case i was asked to copy office name to ipphone attribute in bulkf for all users. it took only 5 mins for 3000 users. It all matters how well you use your powershell skills

Copying Office Name to IpPhone attribute in Bulk


$USERS = Get-ADUser -Filter {DisplayName -like "test1*"} -Properties physicalDeliveryOfficeName,Ipphone
foreach($user in $USERS)
{
$copy = $user.physicalDeliveryOfficeName
Set-ADUser $user -Replace @{ipPhone=$copy}
}

About Satheshwaran Manoharan

Satheshwaran Manoharan is an Microsoft Office Server and Services MVP , Publisher of Azure365pro.com. Specialized in Office365 / Microsoft Exchange / Virtualization , Sathesh is an Messaging Expert supporting/Designing/Deploying many medium size businesses to large enterprises when it comes to Corporate messaging and Virtualization Infrastructure

Check Also

Leaving the Organization as guest in Teams

Leaving the Organization in teams is certainly important . So that you can come out …

Leave a Reply

Your email address will not be published.