Download content from a site collection

I’ve been working on a script that will allow you to download all files that are stored in SharePoint in a given site collection. If the path does not exist, the script will prompt you to create it for you. Before the script runs, it also checks if the site collection exists. Run the script Read more about Download content from a site collection[…]

Add-PSSnapIn Microsoft.SharePoint.PowerShell shortcut

Are you tired of typing Add-PSSnapIn Microsoft.SharePoint.PowerShell every time you open your PowerShell console? You can do this by Adding/Editing profile.ps1 (I don’t do this because I have too many machines where I should change this) If you find you do not want to change the profile.ps1 on every server you are working on, you can Read more about Add-PSSnapIn Microsoft.SharePoint.PowerShell shortcut[…]

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://portal.sharepointrelated.com/Projects”? My first thought was to use Read more about Get all subsites of a subsite 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 “NewEmail@xxx.com” 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: http://portal.contoso.com. 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[…]

Add/Edit list items using PowerShell in SharePoint 2010

During the last few months I have been asked a few times to help think of a way to edit list values for lists that contain a lot of data. I immediately thought of PowerShell. This is why I want to show you what you can do with PowerShell. Used set up for this demo Read more about Add/Edit list items using PowerShell in SharePoint 2010[…]