Forum Discussion
johndpalm
Dec 15, 2020Brass Contributor
Set 'audiences to target' in SharePoint navigation using PowerShell
I'm using PnP PowerShell to create SharePoint Hub navigation nodes (Add-PnPNavigationNode), but cannot find a way to configure the audience targeting via PowerShell. I tried this. It completed w...
Andreas Lemarcq
Jul 03, 2025Brass Contributor
Hi,
I used this line of code:
Set-PnPWeb -NavAudienceTargetingEnabled:$true