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}
}

Clear the attributes using Powershell

Set-ADUser $_.samaccountname -Clear extensionAttribute10

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

az Git Terraform configs to work behind Proxy

Let’s see how to configure proxy for az Git and Terraform behind an authenticated proxy …

Leave a Reply

Your email address will not be published.