Category: One-liner

Summary: This PowerShell one-liner will show the people picker settings for each Web Application, including Central Administration. If you want to know the settings for the people picker in your SharePoint farm, you can run the following line of PowerShell. It will retrieve all Web Applications and show the people picker settings for each one. Running Read more about People picker settings for all Web Applications one-liner[…]

In a minute, I will show you how to change the site collection administrators for all site collections using PowerShell. Thanks to Maarten Peeters for helping! But first, it may be easy to get a result for all the current site collection administators, in case you want to roll back: Now if you want to Read more about Change site collection administrators using PowerShell[…]

Another one in the series of oneliners. This one will show you all Web Applications, and all associated Content Databases for these Web Applications: The output will look similar to this:You can output this to a text file by running the following:

This oneliner will show you the currently configured cache accounts for each of your Web Applications. Just paste this line of code in your SharePoint Management Shell: This is the output for the above command in my test environment: In my case, I have not properly configured the super user accounts for all my Web Read more about Current cache accounts PowerShell oneliner[…]

This will be a very short post, as it contains only 1 line of PowerShell code, and is not very hard to understand. It shows you all content databases, and for each of the content databases, it will show you the site collections within this content database. That wasn’t so bad right? Just copy and Read more about Get Site Collections per Content Database oneliner[…]