Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

AD 2012 Move Atrribute Mobile Phone to Pager

Posted on 2016-07-19
4
Medium Priority
?
61 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 2000 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 2000 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

After seeing many questions for JRNL_WRAP_ERROR for replication failure, I thought it would be useful to write this article.
Let's recap what we learned from yesterday's Skyport Systems webinar.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
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…

705 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