Get all subsites of a subsite using PowerShell

Getting a list of all subsites of a particular site (not a site collection) was a little more work than I expected, so here is how I did it. Let’s say we have the following situation site structure: What if we want an overview of all sites under “Https://”? My first thought was to use Read more about Get all subsites of a subsite using PowerShell[…]

Remove users from User Information List (people picker) using PowerShell

This post will describe how you can remove users in bulk from the User Information List using a PowerShell script and a simple CSV file. In SharePoint 2010, the people picker retrieves data from multiple sources. – The Site Collection’s User Information List (UIL); – Active Directory. When you delete a user from Active Directory, Read more about Remove users from User Information List (people picker) using PowerShell[…]

Change site collection administrators using PowerShell

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[…]

Update Secure Store Service Application using PowerShell

This post describes how you can update the Secure Store Service Application using PowerShell. You can use the following script to update information for one of your Secure Store Applications. I want to change the Contact E-mail property for this Secure Store Application to “” Used Configuration For this part, I have set up the Read more about Update Secure Store Service Application using PowerShell[…]

Content Database FAQ

This post describes the most frequently asked questions on a content database in SharePoint. Since there is a lot of misconception on how different SharePoint components relate to each other, I will try to answer some common questions. Please feel free to comment or ask additional questions in the comment section. I will add them Read more about Content Database FAQ[…]

Error using Move-SPSite cmdlet

This post discusses an error using the Move-SPSite cmdlet. Let’s say you have 1 Web Application with 2 content databases: – Database 1 – Database 2 Database 1 contains a site collection with the following URL: For some reason, you moved the site collection using the following cmdlet: So far so good. Now let’s Read more about Error using Move-SPSite cmdlet[…]

Current cache accounts PowerShell oneliner

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[…]