Enumerating Sites in a farm

posted in: PowerShell | 0

Use the following one liner to enumerate the sites and subsites in a SharePoint 2010 or 2013 web application:

  If you wanted to pipe that to a file, you could use Out-File, followed by a path to your … Read More

SharePoint Managment Shell via remote session

You can run a SharePoint Management Shell remotely with the following lines of powershell

    Note, that at this point, you can run whatever administrative PowerShell commands you need to run by using the Invoke-Command -Session $session -ScriptBlock{} … Read More

Rolling out Central Admin and the Config Database and all the assoicated features

Here’s an oldy but a goody, how to get your Central Admin and Config Databases created without using the gray wizard. Blog post inspiration –> https://technet.microsoft.com/en-us/library/ff607838.aspx This approach results in clean database names.

# Note: you can remove the … Read More

Reset your index with PowerShell

As this great blog on repairing the SharePoint 2013 On-Prem reset index stuck resolution, states it’s best to reset your index using powershell. Sometimes when you search service is paused, you can run


    … Read More

Working with paused search index

When you want to know what search is up to, check it out with the management shell and these handy hints I copied in from Microsoft Technet – https://technet.microsoft.com/en-us/library/dn745901(v=office.15).aspx Run this

    if it returns false, the search … Read More

Creating a Search Service Application and topology with PowerShell in SharePoint 2013 or 2016 – IN SAME APP POOL AS OTHER SERVICE APPLICATIONS

You can use this script to create a new search service application after you have removed your search service application.  WARNING: This creates the search service in an existing application pool named “SharePoint Hosted Services”.  Edit the $saAppPoolName, $serviceAppName, and … Read More

Extracting Lists and Libraries that have email enabled.

​To get your arms around the lists and libraries in your farm, run this for each web application. Information below is based on this post:  https://social.technet.microsoft.com/forums/sharepoint/en-US/457387e3-05af-425c-9de4-5aa15d673a19/getting-a-list-of-all-email-enabled-document-libraries-witin-a-sharepoint-2007-web-app   Load this function into a SharePoint management Shell  


1 2 3 4 5 6 7 11