Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

AD 2012 Move Atrribute Mobile Phone to Pager

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

Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

Question has a verified solution.

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

Here's a look at newsworthy articles and community happenings during the last month.
How to deal with a specific error when using the Enable-RemoteMailbox cmdlet to create a mailbox in the cloud-based service, for an existing user in an on-premises Active Directory.
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 …
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

824 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