Skip to main content

All Questions

Tagged with
1 vote
0 answers
27 views

Programmatically generating Shortcuts in OneDrive to a SharePoint Document Library / folder

We are looking to leverage these shortcuts in lieu of deploying sync relationships via GPO for our SharePoint migrations moving forward, I am in the process of just seeing how feasible this is from a ...
abakedapplepie's user avatar
0 votes
2 answers
121 views

How do I configure URL Rewrite for IIS using Desired State Configuration (DSC)?

When automating a setup of an IIS site, I run into an issue that required me to use URL Rewrite. However, I don't seem to get the grip of how to use the DSC Resource command WebConfigProperty ...
Dennis's user avatar
  • 1,919
3 votes
0 answers
59 views

How to Determine OneDrive or SharePoint Directory Using SHGetPropertyStoreFromParsingName

Question: I have been using PowerShell to check the Available Status of a file in OneDrive or SharePoint directories using Shell32.dll. Previously, the GetDetailsOf function returned Available Status ...
Woo-Hyun Song's user avatar
0 votes
1 answer
37 views

Powershell script using Add-PnPFile to add same file to 2 different libraries isn't working

I wrote a script to add files to a document library within SharePoint. Pretty straightforward, however I now want to add that same file to a different document library depending on if certain criteria ...
DanielJ's user avatar
  • 109
1 vote
1 answer
38 views

Trying to add files to a sharepoint library via Add-PnPFile but whenever a blank value is sent to a datetime column, no other values are sent

I've got a script that adds a file then reads an excel sheet and then populate a sharepoint document library with that data. The command looks something like Add-PnPFile -Path $Path -Folder $...
DanielJ's user avatar
  • 109
0 votes
1 answer
33 views

Sharepoint PowerShell build where-object dynamically

I need to get the documentset folder from Config file and filter based on the file which contain "March-2025-File" and "Feb-2025-File". In Config file it is like March-2025-File;...
Karunakar's user avatar
-1 votes
1 answer
139k views

Randomly getting a "Error: The file A has been modified by A on A." when running Set-PnPListItem

I have a script that reads an Excel document, and using the info from the excel document it adds a file to the sharepoint document library and fills the column information in the document library with ...
DanielJ's user avatar
  • 109
1 vote
3 answers
56 views

How to export / backup files from Sharepoint page libraries?

I'm looking to export all pages under a page libraries in Sharepoint, how do I achieve this? It is currently not an option to export page libraries, but can be done by Sync for the other SP ...
user2167582's user avatar
  • 6,398
-1 votes
1 answer
32 views

Get-PnPPage cannot get right webpart section

When I used Get-PnPPage command to get the webparts of a page, the result was as following. However, when I got the section of a webpart, the result returned was not an integer. InstanceId ...
H Wang's user avatar
  • 1
0 votes
0 answers
93 views

SharePoint Online PnP Powershell field Read-only not working

When setting a SharePoint Online Field in a list to ReadOnly, I cannot edit the field in the grid view only. However, the field is still editable in the EditForm. Connect-PnPOnline -Url "<Site&...
Tim B.'s user avatar
  • 1
0 votes
1 answer
78 views

The object specified does not belong to a list - SharePoint Online PowerShell script

I am trying to get one of the properties (Batch date) of the SharePoint online document library file. I am getting below error Any suggestion on this please. Batch date is single line of text field ...
gokulnath's user avatar
0 votes
1 answer
99 views

PnP PowerShell Authentication Issue with SharePoint

I have been tasked with extracting SharePoint List schemas for storage and I'm using PnP PowerShell module to do this, we also want to automate this so can't use interactive login, it must be non-...
Hamza Malik's user avatar
0 votes
1 answer
186 views

Granting permissions to upload a file to sharepoint using PnP Powershell - 401 Unauthorized

I am trying to grant an application registration access to upload files to a sharepoint site using PnP Online. All the commands seem to work, but when i try uploading a file i get a 401 error. I would ...
wilson_smyth's user avatar
  • 1,526
0 votes
1 answer
73 views

The Copy-PnPFile method does not copy items from the document library to the SharePoint list

Hello everyone I have tried copy documents in document library, but have mistake: "Access denied". In code bellow I tried copy one element by id: $clientId = "**************************&...
Denys Kravchenko's user avatar
0 votes
1 answer
239 views

Attempting to set DisableCustomAppAuthentication to false for Azure not working from Powershell

I have the following powershell script on MacOS but theres no clear way to set this flag to false neither with set-spotenant nor with Set-PnPTenant. cd /Users/user/.local/share/powershell/Modules ...
Wajih Siddiqui's user avatar

15 30 50 per page
1
2 3 4 5
84