Solved

AD 2012 Move Atrribute Mobile Phone to Pager

Posted on 2016-07-19
4
50 Views
Last Modified: 2016-07-20
Im looking for a shell command i can use to migrate details from Mobile Phone attributes to Pager.
0
Comment
Question by:akosinoah
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 22

Assisted Solution

by:Joseph Moody
Joseph Moody earned 500 total points
ID: 41719092
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
 
LVL 1

Author Comment

by:akosinoah
ID: 41719109
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
 
LVL 22

Accepted Solution

by:
Joseph Moody earned 500 total points
ID: 41719115
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
 
LVL 1

Author Closing Comment

by:akosinoah
ID: 41719134
Thank you Joseph
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article demonstrates probably the easiest way to configure domain-wide tier isolation within Active Directory. If you do not know tier isolation read https://technet.microsoft.com/en-us/windows-server-docs/security/securing-privileged-access/s…
Active Directory security has been a hot topic of late, and for good reason. With 90% of the world’s organization using this system to manage access to all parts of their IT infrastructure, knowing how to protect against threats and keep vulnerabil…
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question