what do i need to access sharepoint files directly without downloading them?
i have a large files on sharepoint site more than 1tb and im trying to detect duplicated files and i found this powershell script on Microsoft forum and i did run it on my pc i tested it , it runs perfectly but the only issue that it needs to download the files locally , i did my research i saw that there is a sharepoint powershell to run powershell scripts on sharepoint server and my question is how to access the files directly without downloading them if i want to run the script on sharepoint server.
Using a PowerShell script how would I set specific permissions when creating a SharePoint site template
I am using this as a guide:
https://learn.microsoft.com/en-us/sharepoint/dev/declarative-customization/site-design-overview#anatomy-of-a-site-script
As usual most MS documentation leave out the most important parts :).
My script uses JSON:
Powershell 7 Invoke-Restmethod Upload to SharePoint Online Circular Errors
I’m trying to upload a file to SharePoint Online from a Powershell script via Invoke-RestMethod When I use a hash table as the header the response says the entity wants a JSON header. When I convert the header to JSON it says it can’t bind the header because it can’t convert a type string to a type IDictionary.