Skip to content

Latest commit

 

History

History

Audiences.Retrieve

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Retrieve Web Parts Audience Targeting

This PowerShell sample demonstrates how to use the Office Dev PnP PowerShell to retrieve Web Parts Audience targeting information from a site collection.

Applies to

  • Office 365 Multi-Tenant (MT)
  • Office 365 Dedicated (D)
  • SharePoint 2013 on-premises

Prerequisites

SharePoint Online Management Shell
Office Dev PnP PowerShell Commands

Solution

Script GetWebPartsAudience.ps1

Author(s)
Ivan Bondy (Microsoft)

Version history

Version: 1.0
Version Date: 10/19/2015
Comments: Initial release

Disclaimer

THIS CODE IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.


General

  • Set value for $outputFile parameter. This specify the file where results will be written.
  • Set $site variable to specify Url for your site collection.