Set-SPPeoplePickerConfig

此 cmdlet 设置指定 Web 应用程序的人员选取器的设置。

语法

Set-SPPeoplePickerConfig
   -WebApplication <SPWebApplicationPipeBind>
   [-ActiveDirectoryCustomFilter <String>]
   [-ActiveDirectoryCustomQuery <String>]
   [-ActiveDirectorySearchTimeout <Int32>]
   [-PeopleEditorOnlyResolveWithinSiteCollection]
   [-OnlySearchWithinSiteCollection]
   [-NoWindowsAccountsForNonWindowsAuthenticationMode]
   [-AssignmentCollection <SPAssignmentCollection>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

说明

此Set-SPPeoplePickerConfig cmdlet 设置指定 Web 应用程序的人员选取器的以下设置:1) 使用人员选取器查询发送到 AD 的自定义查询筛选器。 2) 使用人员选取器查询发送到 AD 的自定义查询。 3) AD 搜索超时前的时间。4) 人员选取器控件是否只应在单击“检查名称”按钮时返回网站集用户。 5) 使用“选择人员和组”对话框时,人员选取器控件是否只应返回网站集用户。 6) Web 应用程序使用基于表单的身份验证时是否仅返回非 Active Directory 用户。

示例

--------------示例 1--------------

Set-SPPeoplePickerConfig -WebApplication http://MyOfficeApp1 -ActiveDirectoryCustomFilter "((Title=Manager))" -ActiveDirectoryCustomQuery (sn={0}*) -ActiveDirectorySearchTimeout 60 -PeopleEditorOnlyResolveWithinSiteCollection -OnlySearchWithinSiteCollection -NoWindowsAccountsForNonWindowsAuthenticationMode

本示例将以下设置设置设置为 Web 应用程序 MyOfficeApp1 的人员选取器:- 返回标题为“Manager”的 Active Directory 用户列表 - 查询仅搜索姓氏 - 在 Active Directory 搜索超时前 60 秒 - 人员选取器控件应仅在单击“检查名称”按钮时返回网站集用户 - 人员 选取器控件应仅在使用“选择人员和组”对话框时返回网站集用户 - 当 Web 应用程序使用基于表单的身份验证时,人员选取器控件仅返回非 Active Directory 用户

参数

-ActiveDirectoryCustomFilter

轻型目录访问协议 (LDAP) 查询字符串,以创建用于显示查询结果的自定义筛选器。

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-ActiveDirectoryCustomQuery

将人员选取器查询追加到 Active Directory 的轻型目录访问协议 (LDAP) 查询字符串。

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-ActiveDirectorySearchTimeout

Active Directory 搜索超时前的秒数。

Type:Int32
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-Confirm

提示你在运行 cmdlet 之前进行确认。

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-NoWindowsAccountsForNonWindowsAuthenticationMode

指定在 Web 应用程序使用基于表单的身份验证时,人员选取器控件仅返回非 Active Directory 用户。

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-OnlySearchWithinSiteCollection

指定人员选取器控件应仅在使用“选择人员和组”对话框时返回网站集用户。

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-PeopleEditorOnlyResolveWithinSiteCollection

指定人员选取器控件应仅在单击“检查名称”按钮时返回网站集用户。

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-WebApplication

要将人员选取器设置设置为的 Web 应用程序。

Type:SPWebApplicationPipeBind
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-WhatIf

显示在 cmdlet 运行时发生的情况。 此 cmdlet 未运行。

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-工作分配

Manages objects for the purpose of proper disposal. Use of objects, such as SPWeb or SPSite, can use large amounts of memory and use of these objects in Windows PowerShell scripts requires proper memory management. Using the SPAssignment object, you can assign objects to a variable and dispose of the objects after they are needed to free up memory. When SPWeb, SPSite, or SPSiteAdministration objects are used, the objects are automatically disposed of if an assignment collection or the Global parameter is not used.

When the Global parameter is used, all objects are contained in the global store. If objects are not immediately used, or disposed of by using the Stop-SPAssignment command, an out-of-memory scenario can occur.

Type:SPAssignmentCollection
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition