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
SharePoint Online Management Shell
Office Dev PnP PowerShell Commands
Script GetWebPartsAudience.ps1
Author(s)
Ivan Bondy (Microsoft)
Version: 1.0
Version Date: 10/19/2015
Comments: Initial release
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.
- Set value for $outputFile parameter. This specify the file where results will be written.
- Set $site variable to specify Url for your site collection.