Skip to main content

All Questions

1vote
5answers
3kviews

What Is The Path To A PnPFile In SharePoint?

In the Documents directory in Sharepoint online I have a sub-directory called Development and a file in there called FontDemoInfo.txt. In the browser it looks like: Documents > Development ...
opticyclic's user avatar
1vote
2answers
4kviews

SharePoint find and delete file

A cyber attack generated thousands of files in SharePoint with this name "Read_me_now.htm". In PowerShell with the command Find-PnPFile -Match * read_me_now.htm * I display them. With what ...
Tomato1287's user avatar
1vote
1answer
1kviews

How to restore all Items from Recycle bin from a particular SharePoint online library using PnP PowerShell?

I have a SharePoint online library called MyLibrary, it contains approx. 4000 items. The items got deleted, and I need to restore them using PnP PowerShell, the following are the challenges I am ...
Ashish's user avatar
1vote
1answer
1kviews

How i can get all files recursively without folders using Get-PnPFolderItem from the root folder and its subfolders

I want to get all the files from the root folder and its sub-folders, now when I tried this script: $customerFolderFiles = Get-PnPFolderItem ` -FolderSiteRelativeUrl $serverRelativeUrl ` -...
microsoftdeveloperdesigner's user avatar
1vote
1answer
142views

-ExemptFromBlockDownloadOfNonViewableFiles $true not running on SharePoint online

I am trying to set this value true on my entire tenant for the ClientSideAssets library. I would like to have -ExemptFromBlockDownloadOfNonViewableFiles set to true on entire tenant if possible if not ...
Newb's user avatar
1vote
1answer
2kviews

How to get the list item ID of a nested library folder using PnP PowerShell?

I am trying to add metadata to document library folders created using the Add-PnPFolder command. I've been using the Set-PnPListItem command to do this, which requires the folder's list item ID. ...
Dr. Spatula's user avatar
1vote
1answer
833views

SharePoint Online: View on Document Library Subfolder Does not Display Folder Files

I'm using the PowerShell script below to create views on a SharePoint Online document library with subfolders. The script creates the view, but does not display the files contained in the subfolder. ...
Patti Love's user avatar
1vote
1answer
254views

Using PnP PowerShell to find shares in Site / Document Library?

I am trying to find the list of shares in a site / document library / list using PnPPowerShell. Does such a Commandlet exist ?
Nigel Price's user avatar
0votes
2answers
214views

Is Custom Script Enabling required for PNP PowerShell?

We are generating a PNP PowerShell to copy any document library files to file share. The issue we are facing is with "Get-PnPListItem" command. When we try with a tenant that has custom ...
love thakker's user avatar
0votes
1answer
193views

Get-PnPProperty -ClientObject with "invalid ID"

After I successfully call $f=Get-PnpFile -Url $Url if I invoke Get-PnPProperty -ClientObject $f -Property Versions I get an error that the object ID is invalid. Any clue?
Stéphane BARIZIEN's user avatar
0votes
1answer
2kviews

How I can ONLY get the first level folders (main folders) inside document library, seems "Get-PnPFolder -List $Library" retrieve all the sub-folders

I have this script to loop through all site collections >> and all document libraries >> then list the folders in this format "Site Name >> List Name >> Folder Name":...
John John's user avatar
0votes
1answer
328views

Looking for a PowerShell Script to "Display this document library on the Quick Launch?"

We are doing bulk network share drive migrations into SharePoint. The SPO Migration tool automatically creates the document library, but does not automatically add it to the Quick Launch. There does ...
Scott's user avatar
0votes
1answer
804views

SharePoint Number Field - Remove Comma Separator

My document library in a SharePoint site has reached threshold limit and because of which I am not able to update number field to remove comma separator. Is there any way either through PowerShell or ...
Priya's user avatar
0votes
1answer
2kviews

PnP powershell to enable documents to open in client app

I can enable this using the site settings, but I am looking to write a PowerShell script add into a PnP template to enable documents to be opened in the client application vs in the browser. This is ...
hittle08's user avatar
0votes
2answers
132views

How to count all files recursive inside a specific folder programmatically in powershell?

How can I count all files recursive inside a specific folder in a document library by powershell? So he needs to count also the files inside the subfolders recursive.
KEM's user avatar
  • 15

153050per page
close