Questions tagged [sharepoint-online-powershell]

Filter by
Sorted by
Tagged with
0 votes
0 answers
11 views

How to change the banner name on organization news articles

I've enabled two communication sites as organization news sites for our SharePoint online tenant, one for CEO news and one for Firmwide news, but rather having the name of the organization news site ...
Martin G's user avatar
1 vote
2 answers
112 views

Add-SPOTheme : The term 'Add-SPOTheme' is not recognized as the name of a cmdlet, function, script file, or operable program

I am trying to apply a custom theme color to my SharePoint online site from an article I got online. Im running it in SharePoint online Management shell. I have the latest version of SPO management ...
Hes JvR's user avatar
  • 89
0 votes
0 answers
18 views

PnP Script which work on file modified on 10 March 2023 >> restore previous version >> rename the restored file

We have someone who have modified many files on 10 March by adding .lock extension to the files so Test.xlsx become Test.xlsx.lock. so can i write a power shell script which do the following:- ...
John John's user avatar
0 votes
0 answers
40 views

Bulk add owner to all Teams using PnP PowerShell?

I need some help in adding my admin account as one of the owners of all my Teams group using the Powershell https://pnp.github.io/powershell/cmdlets/Add-PnPMicrosoft365GroupOwner.html Because without ...
Senior Systems Engineer's user avatar
0 votes
1 answer
250 views

CSOM PowerShell script - moving to modern authentication

I have a complex CSOM script that I need to get working for a Tenant that uses Modern Authentication. This works fine using Basic Authentication. Its not an automated script so an interactive login ...
user3844416's user avatar
0 votes
0 answers
21 views

PowerShell script to get the ShowInEditForm property for a site column. i do not want to use PnP PowerShell [duplicate]

I am trying this script to get the ShowInEditForm property of a site column and then set it to False:- Connect-SPOService -Url https://****-admin.sharepoint.com/ Get-SPOSite -Identity https://***....
John John's user avatar
0 votes
1 answer
86 views

Need a powershell script to update 300+ SharePoint SitePages

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
148 views

Using PowerShell to find a document using the DocIDRedir.aspx page

We have an issue when attempting to use the Document ID service in SPO with some documents. We're able to browse to the majority of them using the DocIdRedir URL https://contoso.sharepoint.com/sites/...
James's user avatar
  • 1
0 votes
0 answers
26 views

How to modernize a classic site other than a classic team site on SharePoint online

I have couple of site collections on my tenant which are created based on different classic templates like Document center, eDiscovery Center, Blank Site, Project Web App Site, Publishing Site , ...
Rameez's user avatar
  • 83
0 votes
1 answer
120 views

Re-Show Recurrence Column in Event Content Type

In SharePoint Online, in the Content Type Gallery, I un-checked "Show this column in lists" for the Recurrence column in the Event content type. Now, when I re-check it, the "Save" ...
J Eastman's user avatar
0 votes
0 answers
28 views

Working Around Permissions Break Script Time Out/List Threshold Limitations

I have a document library with a large amount of directories and thus permissions which I would like to break inheritance of and have come across the SharePointDiary script which works perfectly apart ...
EverGrateful's user avatar
2 votes
1 answer
809 views

Get all comments from modern Site pages in SharePoint Online

I have a requirement to fetch all the comments from all the site pages in a SharePoint Online site collection date wise. Is there a way to achieve it using Powershell? I will be creating a timer job ...
Sivanrv's user avatar
  • 91
0 votes
1 answer
295 views

Using SharePoint Site Template Powershell - Home Page Layout/Web Parts not working - SharePoint Online - Modern Pages

I am using PowerShell Get-SPOSiteScriptFromWeb and Add-SPOSiteScript etc. I am able to copy links, create lists, etc. But my HomePage webparts/layout is not reflected when I apply the site script ...
Mark Apolinar's user avatar