New answers tagged powershell
0
votes
'Connect-PnPOnline' is not recognized when running task scheduler
Have you installed the module with -scope AllUsers?
Otherwise the user running the script has no module installed
3
votes
How do I find out what kind of access a user has to a SharePoint Online site using PNP PowerShell?
Please try below script, this will give list of users who have direct access to the site:
# Import the PnP PowerShell module
Import-Module PnP.PowerShell
# Connect to SharePoint Online
Connect-...
0
votes
Set-PnPSiteVersionPolicy for thousands of sites in SharePoint Online - Cannot call this API with an app-only principal
Per my test, I could reproduce your issue, and after doing some research, I found that sharepoint doesn't support the cmdlet with app only permission currently. You could refer to the following link
...
0
votes
Associated owner group is always null
It is because the group does not exist on that site (deleted or not created during site creation) - for example modern sites (STS#3 template) have no such groups. There are more other site types ...
Top 50 recent answers are included
Related Tags
powershell × 4157sharepoint-online × 940
sharepoint-enterprise × 521
2013 × 492
sharepoint-server × 492
2010 × 338
pnp-powershell × 312
list × 227
csom × 215
sharepoint-foundation × 163
document-library × 163
development × 126
permissions × 124
office-365 × 120
site-collection × 105
administration × 92
content-type × 79
workflow × 76
export × 66
web-part × 61
groups × 59
backup × 58
script × 57
search × 54
2016 × 53