Introduction:

A custom powershell cmdlet which is used to enable the Audience Targeting for the SharePoint 2010 list.

Set-SPListAudienceTargeting

Custom Powershell cmdlet to enable the Audience targeting.

Set-SPListAudienceTargeting [-url] <String> [-ListName] <String> -Enabled <String>

Parameters

Cmdlet1.gif

Detailed Description

The Set-SPListAudienceTargeting cmdlet is used to enable the Audience targeting for the list.

EXAMPLE 1

Set-SPListAudienceTargeting http://sitename/sites/test -ListName "Shared Documents" –Enabled true

This example enables the audience targeting for the list.

Cmdlet2.gif

Register the cmdlet: