Today I am providing the Power Shell Script that will
map the given user profile properties with given AD Synchronization properties.
User will have to create a CSV file that will contain User Profile Property
names and their respective Connection and Ad property and script will map them
all.
Inputs
CSV
path - Provide the Path of CSV file where you have save to map the user
profile.
Outputs
This
script will map user profile properties for Ad synchronization properties, that
you have defined in CSV file. Define the mapping multiple times if you want to
add mapping multiple times.
Example-
.\scriptname.ps1
.\scriptname.ps1 | out-file “FilePath\Filename.txt”
Dependencies –
Run
this script with Farm Account. Farm account is the user who installed
SharePoint.
User should have Shell Admin rights to run the
scripts.
Run Management Shell as an Administrator.
How to execute -
Copy this script and paste in Note pad.
Save this file as .ps1.
Run this script in SharePoint Management Shell. You can run this script in PowerShell as well.
Follow on screen instructions.
Run Management Shell as an Administrator.
How to execute -
Copy this script and paste in Note pad.
Save this file as .ps1.
Run this script in SharePoint Management Shell. You can run this script in PowerShell as well.
Follow on screen instructions.
FOR ANY HELP ON THIS SCRIPT USE
"GET-HELP .\SCRIPTNAME.PS1 --FULL" AFTER SAVING THIS FILE.
CSV file template –
No comments:
Post a Comment