• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 85
  • Last Modified:

AD 2012 Move Atrribute Mobile Phone to Pager

Im looking for a shell command i can use to migrate details from Mobile Phone attributes to Pager.
0
akosinoah
Asked:
akosinoah
  • 2
  • 2
2 Solutions
 
Joseph MoodyBlogger and wearer of all hats.Commented:
You can try this powershell script out:

$Users = Get-ADUser -Filter * -Properties MobilePhone,Pager

foreach ($user in $Users){
Set-ADUser -pager $User.mobilephone -whatif -verbose
}

Open in new window

0
 
akosinoahAuthor Commented:
Hi Joseph,
Thank you for the script you have provided. I just have a 2 question is there way I could test with specific user in AD. and also I need the script to be to copy the details without removing the details from mobile phone attribute.
0
 
Joseph MoodyBlogger and wearer of all hats.Commented:
1. Replace line one with
$Users = Get-ADUser -identity USERSAMACCOUNTNAME -Properties MobilePhone,Pager

Open in new window


2. This script doesn't remove the mobile phone attribute. It just copies it.
0
 
akosinoahAuthor Commented:
Thank you Joseph
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now