• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 81
  • 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

Featured Post

Free tool for managing users' photos in Office 365

Easily upload multiple users’ photos to Office 365. Manage them with an intuitive GUI and use handy built-in cropping and resizing options. Link photos with users based on Azure AD attributes. Free tool!

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