Updating Your Office Phone Number in Active Directory

by Jul 17, 2015

If you have installed the free RSAT tools from Microsoft, you can use PowerShell to update information stored in your AD user account, for example your office phone number.

Whether you are allowed to commit this change depends on your enterprise security settings, but by default you can change a lot of information (for your own user account) without the need for Administrator privileges.

This example shows how a PowerShell script would prompt for a new office phone number which would then be updated in the Active Directory:

#requires -Version 1 -Modules ActiveDirectory
$phoneNumber = Read-Host -Prompt 'Your new office phone number'
$user = $env:USERNAME
Set-ADUser -Identity $user -OfficePhone $phoneNumber

Twitter This Tip! ReTweet this Tip!