Skip to main content

Questions tagged [powershell-script]

Filter by
Sorted by
Tagged with
0 votes
1 answer
37 views

(Note: Referring to Modern SP Site below) The steps: Changes the look, specifically: Theme Header> Layout (to extended) Header> Theme Header> Background Img Header> Site logo thumbnail ...
user115145's user avatar
1 vote
1 answer
519 views

I need a PowerShell script for SharePoint 2013-2019 that will download all files recursively across all subsites and libraries and save them on disk, in a specified location. Since I could not fine an ...
Denis Molodtsov's user avatar
0 votes
1 answer
63 views

I attempting to create a PowerShell script which will return a complete list of Teams in an M365 Tenancy as a csv file. My script appears to run successfully but it does not return the expected data. ...
JonS's user avatar
  • 764
0 votes
1 answer
484 views

I have the following PnP PowerShell to get the URL of a file and remove the ".lock" string from the file name using Replace:- $url = $item.File.ServerRelativeUrl Write-Host "$(Get-Date) ...
John John's user avatar
  • 1,420
0 votes
2 answers
779 views

I have a document library with the document set content type and document content type in it. In the document library there is more than than 8 Lakhs (0.8 million) document. In the "My Document&...
SP 2022's user avatar
  • 4,154
0 votes
1 answer
534 views

Is there a PowerShell/PNP script that will update all "Highlighted Content" web parts within multiple site pages within a site? Need to update the web part Layout from "Grid" view ...
Luke's user avatar
  • 13
0 votes
1 answer
3k views

Based on this solution to convert .xls to .xlsx, is there a way to convert .doc to docx within SharePoint Online? We migrated a lot of files and folders from NTFS folders to SharePoint online but did ...
Andrew Wright's user avatar
0 votes
0 answers
400 views

Is there a way of being able to find files within multiple Document Libraries matching a specific name and deleting all of them? I have written a script using the Find-PnPFile and Remove-PnPFile ...
EverGrateful's user avatar
0 votes
2 answers
1k views

We have lots of service accounts in our SharePoint environment, now we are planning to delete the unwanted service accounts from our environment to keep the environment clean. So, I was checking ...
SP 2022's user avatar
  • 4,154
2 votes
1 answer
1k views

I need to download the PowerApps(canvas app) solution package(.Zip file) by using PowerApps PowerShell script or pnp script. Anyone suggest me if it is possible.
PGP's user avatar
  • 1,125
0 votes
1 answer
41 views

Can anyone provide automate script to add/deploy/update solution in SharePoint 2016. So that developers can run this batch file without help from SharePoint Administrators. And please suggest me best ...
Srinu Dasari's user avatar
0 votes
0 answers
49 views

I want to change the status of workflow using PowerShell script. If you go into workflow settings in a library in SharePoint, and click on Remove a workflow, you see the 3 settings I'm referring to: &...
user99500's user avatar
1 vote
1 answer
2k views

I have a document library which has 3 folders in it and inside each folder there is a document (docx, xls, ppt). My objective is to iterate every file inside my document library and check if It has ...
G.F's user avatar
  • 11
0 votes
1 answer
1k views

I have been attempting to Unlock a ReadOnly site in SharePoint Online. I have tried with PNP Connect-PnPOnline $SiteURL -Credential $Cred Set-PnpSite -LockState "Unlock" I have tried with ...
EFighter's user avatar
0 votes
2 answers
536 views

Thanks for you time reading this. We are a Technical School that's using Sharepoint 365 as way to collect files and resources. We have to open a Sharepoint to each class and I'm compiling a Powershell ...
Vítor Verdura's user avatar
0 votes
1 answer
843 views

In our SharePoint Online, we have n number of sites where retention labels are being assigned for the contents. Though, we are not sure if we have labeled everything and would like to verify what has ...
Jag's user avatar
  • 1
1 vote
1 answer
4k views

I'm trying to retrieve information from two columns on a sharepoint list in order to use them in powershell. Here's my code so far: $SiteURL = "https://xxxx.sharepoint.com/sites/xxxxx/" ...
Ress's user avatar
  • 85
0 votes
1 answer
266 views

I am trying to write a Caml Query to get only today's list items and then later copy it into the new list. I am using the batch method to copy data from source list to destination. source list gets ...
ParshvaShah's user avatar
0 votes
2 answers
5k views

I'm using ModernUI for SharePoint Online. I'd like to get all List and Library's ColumnName, Type, InternalName in my site by PnP PowerShell. I did some research myself, but I didn't understand, so I ...
Hyonta's user avatar
  • 155
0 votes
1 answer
100 views

I'd like to disable sharing to all members except administators on ALL Site Collections. Is there a Powershell command that match my request ? Or maybe only admistrators will approve sharing request. ...
Mapow's user avatar
  • 5
0 votes
1 answer
35 views

I will need to look for the solution to implement the manual script initiation for specific file type in the document library (ex. force unlocking a document). Idea is that I will add additional ...
Marko Farkas's user avatar
1 vote
1 answer
42 views

In the Sharepoint Online Management Shell my goal is to call the cmdlet Invoke-SPOSiteDesign (doc) with one fixed Design (i.e. the -Identity parameter) onto all SPOSites on my tenant. I can get all ...
Giraphi's user avatar
  • 113
0 votes
3 answers
2k views

We have 100+ site collections on csv file and we need to mark all sites into "Read Only" mode access based on csv file using powershell script. Anyone suggestion highly appreciate. we am ...
murali kuruva's user avatar
1 vote
1 answer
836 views

I was hoping if someone has created a OneNote notebook file from Power Shell command and stored it in a document library in SharePoint Online. We can create sections and page of OneNote file from ...
Ankit Kumar's user avatar
  • 1,778
0 votes
0 answers
378 views

I have one powershell script where I am connecting to SP 2013 Library to download a file using Server side powershell script. After That in the same script file I am trying to connect to SP Online ...
Kailash Sahoo's user avatar
0 votes
1 answer
1k views

I have a Parent list called country and the child list where I want my values updated is call Continents. the lookup filed name in Continents is "Country". Any help will be greatly ...
Prachi Vijayvargiya's user avatar
0 votes
1 answer
194 views

I'm using the below PowerShell commands to get the last crawl duration. when the Crawl In-progress the 'Crawl Completed' field is empty, I the output as duration in negative values. Could you please ...
taruki_MS's user avatar
  • 105
0 votes
2 answers
4k views

In sharepoint line for a site I have a few site owners. One owner has stopped inheriting permissions for a library and a folder and gave access to a user. As a tenant admin I want to know who that ...
santosh kondapalli's user avatar
0 votes
1 answer
1k views

I'm having SharePoint 2016 On-premise environment, now we have a requirement as follows. we have nearly 100 SharePoint Groups, where we had already have many user's identity added as DOMAIN\username ,...
Jegan Baskaran's user avatar
0 votes
1 answer
504 views

I ran below script to unlock SP site. $admin = new-object Microsoft.SharePoint.Administration.SPSiteAdministration (“Site-Collection-URL”) $admin.ClearMaintenanceMode() Getting below error message ...
user3210176's user avatar
1 vote
1 answer
737 views

I am in the process of configuring my Sharepoint Framework development environment, I installed node.js and visual code everything is fine but after the powershell level I ran into this error that I ...
chiraz azzabi's user avatar
0 votes
0 answers
877 views

I am writing a Powershell Script to read SPListItems, create a PSObject for each, add it to the PS Array and after the loop ends I use the following to convertto-html myArray | convertto-html -path .....
Ali's user avatar
  • 1
0 votes
1 answer
2k views

I'm using SharePoint 2016 On-premises server, we have two main site collection, I need to get a list of orphaned users in each site collection. I've come across this PowerShell script mentioned here ...
Jegan Baskaran's user avatar
0 votes
2 answers
1k views

I have multiple main folders on SharePoint online each with their own sets of sub-folders and files. I need to delete a specific folder (and its full contents including any sub-folders and files) from ...
Tomcat1208's user avatar
0 votes
2 answers
829 views

I am requested to generate a report that illustrates the number of pages and plus the count of words on each page, and the number of files in that site (word, PDF, images..etc.). Is there any custom ...
Dreamer09's user avatar
0 votes
1 answer
3k views

I am building a script to essentially copy an entire directory to a SharePoint online library. I have gotten as far as building the folder directory on SharePoint but cannot seem to load any files ...
Tomcat1208's user avatar
1 vote
2 answers
1k views

I am trying to write a script using Power Shell to copy an entire Directory (Main Folders, Sub-Folders, and all Files in between) on a Network Share to SharePoint online. The most I have accomplished ...
Tomcat1208's user avatar
3 votes
3 answers
1k views

I am able to log in to my SharePoint online site using my credential but when I am connecting to the same SharePoint online site using the same credentials using PowerShell CSOM - getting the invalid ...
user1133737's user avatar
0 votes
1 answer
91 views

I have SP2010 in WIN2008R2, i have script(datemodifier.ps1) to update the diff of 2 dates in SP list daily, When I run the script manually its updating the list, but when i schedule it with a task on ...
user3877505's user avatar
0 votes
1 answer
1k views

I have a lot of number of webs (sub-sites) within a site collection that have lists that have list items with Approval workflows running on them. How would I get all tasks for each list item in ...
frnorke's user avatar
  • 31
0 votes
1 answer
231 views

We have a manual process at the moment where we have assigned "Content Owners" to out Sites/Sub-Sites. Content Owners, essentially have no greater permissions than regular users, but our Governance ...
Quasam Amanat's user avatar
0 votes
2 answers
1k views

I have created powershell script to get File/Folder Size details of Sharepoint site. However, I am not able to get all fieldValues of listItems. I am getting values for $listItem.FieldValues["...
Vishal_chorghe's user avatar
0 votes
1 answer
360 views

I am trying run below script on SP 2010 environment for getting list users on farm level. But i am getting error. Can someone please correct me. Powershell script Add-PSSnapin Microsoft.SharePoint....
murali kuruva's user avatar
0 votes
2 answers
63 views

By referring i see that i need to run the command but when i try to run i am getting below error PowerShell Command When i run i am getting below error i am new to powershell and i dont know what ...
Abdul Azeez's user avatar
0 votes
1 answer
484 views

Is it possible to set a People picker field with SharePoint Group using powershell script ?. Thank you.
user1514428's user avatar
1 vote
2 answers
2k views

I want to extract root URL from full URL. how to extract that based on number of "/" in that. for example: https://teams.SharePoint.com/sites/site/communities/subsite from this URL i want to extract ...
Adarsh Awasthi's user avatar
2 votes
2 answers
13k views

I have a Flow to store email attachments (in .csv format) to SharePoint. Now, I want to use the file in Power-BI from SharePoint. However, I want the file in .xlsx format. Could you please suggest how ...
user11726782's user avatar
0 votes
0 answers
31 views

I changed colors under properties > colors to improve readability but: 1/ the colors don't reflect the changes I made 2/ I can't restore defaults or make any other changes. I uninstalled and ...
matt's user avatar
  • 627
0 votes
1 answer
351 views

I'm producing a site design script for SharePoint Online in PowerShell using Add-SPOSiteScript as per these instructions, and I can create the script and add it to a site design without any errors. ...
Bassmanjase's user avatar
0 votes
1 answer
47 views

Change contenttype of all site collection libraries with Powershell Hello everyone. I am an apprentice of powershell and SharePoint and I came across the following scenario: I have a collection of ...
Rafael Araujo's user avatar