Need a poweshell script to list all the SPO sites with the certain character in URL where the offline client availability is set to true

Priya S 0 Reputation points
2024-07-19T05:36:13.67+00:00

Need help with a powershell to list all the SPO sites where the offline client availability is set to true.

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,827 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
3,044 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,595 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Manu Philip 18,681 Reputation points MVP
    2024-07-19T20:58:56.5933333+00:00

    Hi,

    I saw a similar question and answer in the following thread. Please have a look

    Script to get all site collections and subsites from entire farm

    I think, get-spsite -filter switch will help you to list all the SPO sites with the certain character in URL


  2. Priya S 0 Reputation points
    2024-07-22T06:20:35.79+00:00

    Get-SPOSite -Filter { url -like "https://tenant.sharepoint.com/sites/888*"} -Detailed | Export-CSV -LiteralPath C:\Script\SitesInventory.csv -NoTypeInformation

    The above command helps me with the filter but the "offline client availability is set to true " is where am struck


  3. Emily Du-MSFT 47,301 Reputation points Microsoft Vendor
    2024-07-22T07:02:33.6433333+00:00

    When running PowerShell command Get-SPOSite -Identity https://tenant.sharepoint.com/sites/emilytest -detailed |fl, we could get following paraments of a site collection.

    1 According to above results, there is no parament about offline client availability. So, run PowerShell script to list all SPO sites with the certain character in URL where the offline client availability is set to true is not available.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.