Updating Your Office Phone Number in Active Directory

by | July 17,2015

Table of Contents

Updating Active Directory User Information with PowerShell

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.

Permissions for Updating Active Directory Information

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

ReTweet this Tip!