Questions tagged [sharepoint-online-powershell]
The sharepoint-online-powershell tag has no summary.
                15 questions
            
            
            
                0
            
            votes
        
        
            
                1
            
            answer
        
        
            
                52
            
            views
        
        
            
            
        Set-PnPList or Set-PnPField fails to update immediately after a new list is created using Copy-PnPList
                    Any ideas why this code is not executing as expected?  I tried adding a sleep after the Copy-PnPList but still didn't work.
try {
        #Connect to the template site
        $templateSiteConnection =...
                
            
       
        
            
                0
            
            votes
        
        
            
                0
            
            answers
        
        
            
                42
            
            views
        
        
        Sharepoint Online Calendar to Database - PowerShell
                    I need help writing a Powershell script that will insert an existing SharePoint Online calendar into the database.
So far I've managed to find a few examples on the forums, but I'm unable to create a ...
                
            
       
        
            
                0
            
            votes
        
        
            
                1
            
            answer
        
        
            
                52
            
            views
        
        
            
        How to get credentials from SharePoint Online Secure Store?
                    We need to get credentials from our SPOnline Central Admin Secure Store. Unfortunately the people who were admins left, and there's no documentation around it.
I could only find scripts that work for ...
                
            
       
        
            
                1
            
            vote
        
        
            
                1
            
            answer
        
        
            
                528
            
            views
        
        
            
            
        Restrict PnPSearchQuery to just site and subsites not all tenant sites
                    I had a request from some co-workers to build them a PowerShell to search sites for instances of text that is not accessible so they can replace it. Specifically NA or N/A.
I have a PowerShell working ...
                
            
       
        
            
                0
            
            votes
        
        
            
                2
            
            answers
        
        
            
                229
            
            views
        
        
            
        SharePoint Online - unused content report
                    I would like to review the usage of my SPO site and extract a report with the following details:
Title, Created Date, Last Modified Date, Number of hits last 6 months, Last modified by, Created by
I ...
                
            
       
        
            
                0
            
            votes
        
        
            
                1
            
            answer
        
        
            
                34
            
            views
        
        
            
        Can you move unlicensed accounts around using PowerShell in SharePoint Online?
                    I'm trying to bulk move users from one group to another in a SharePoint online group. I ran this script:
And it moved only users that have O365 licenses. When it tried to move the other users, I got ...
                
            
       
        
            
                1
            
            vote
        
        
            
                2
            
            answers
        
        
            
                703
            
            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 ...
                
            
       
        
            
                1
            
            vote
        
        
            
                1
            
            answer
        
        
            
                4k
            
            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 ...
                
            
       
        
            
                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://***....
                
            
       
        
            
                0
            
            votes
        
        
            
                1
            
            answer
        
        
            
                525
            
            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 ...
                
            
       
        
            
                0
            
            votes
        
        
            
                1
            
            answer
        
        
            
                930
            
            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/...
                
            
       
        
            
                0
            
            votes
        
        
            
                1
            
            answer
        
        
            
                476
            
            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" ...
                
            
       
        
            
                0
            
            votes
        
        
            
                0
            
            answers
        
        
            
                121
            
            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 ...
                
            
       
        
            
                2
            
            votes
        
        
            
                1
            
            answer
        
        
            
                2k
            
            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 ...
                
            
       
        
            
                0
            
            votes
        
        
            
                1
            
            answer
        
        
            
                1k
            
            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 ...
                
            
       
         
        