Office 365 Connect

PowerShell – Easy & secure connection to Office 365

Introduction Are you tired of remembering all those cmdlets to connect to Exchange Online, SharePoint Online. So many different cmdlets for the different services. With this PowerShell module you don’t need to remember anything (not even your password!) I published my first PowerShell module to the PowerShell Gallery: https://www.powershellgallery.com/packages/Office365.Connect/. The module contains 2 cmdlets that you Read more about PowerShell – Easy & secure connection to Office 365[…]

People picker settings for all Web Applications 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[…]

SharePoint Related

Change site collection URL in SharePoint 2013

Summary: This post describes the different ways to change the site collection URL in SharePoint 2013. So, your manager/the business asks you to create a few site collections for some departments in your organization. You quickly spin up some site collections for them to use. After a few weeks, the business decides (of course) SharePoint is Read more about Change site collection URL in SharePoint 2013[…]

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

Restore deleted site collections SharePoint 2013

In SharePoint 2013 it is possible to restore a deleted site collection. For more information, read this article: http://technet.microsoft.com/en-us/library/hh272537.aspx You can use the Restore-SPDeletedSite cmdlet to restore a site collection. However, if you removed the site collection using the Remove-SPSite cmdlet using PowerShell, the site collection will not be stored in a SPDeletedSite object. This Read more about Restore deleted site collections SharePoint 2013[…]

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

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