Date and Month display

Registered People Picker of different domain

#-------------------------------------------------------------------------------------------------------------------#
# Author: Shiv Mangal Singh
# Date: oct 17, 2015
# Description:
#  1. This script is used to registered People Picker for different domain.
#------------------------------------------------------------------------------------------------------------------#
# Add SharePoint cmdlets reference
Add-PSSnapin microsoft.sharepoint.powershell -ErrorAction SilentlyContinue

# To check the registered domain with particular Web aplication.
STSADM.exe -o getproperty -pn peoplepicker-searchadforests -url https://ms.abc.contoso.net

# To Registered different domain with particular Web aplication.

$searchScope = "forest:r1-core.r1.contoso.net; forest:r2-core.r2.contoso.net; forest:r3-core.r3.contoso.net; forest:r4-core.r4.contoso.net; forest:r5core.r5.contoso.net;forest:r6-core.r6.contoso.net; forest:r7-core.r7.contoso.net;"
STSADM.exe -o setproperty -pn peoplepicker-searchadforests -pv $searchScope -url https://ms.abc.contoso.net

No comments:

Post a Comment