SharePoint 2010 Server

SharePoint Search Results to CSV

I recently came across the need to provide a report of all documents, list items, pages, etc., from a SharePoint 2010 farm, that contained a certain set of words. Search does this, however, there is no out-of-the-box method to export your search results from your site to a spreadsheet. Sure you could conduct your search and copy and paste what’s on the screen, but there’s the paging cursor to contend with. If your search yields anything above just a couple of pages you’re looking at a lengthy, and very boring, task. PowerShell to the rescue! I’ve found myself uttering that phrase a lot lately. PowerShell saves me a lot of time. Being mostly developer-oriented and focused I often cracked open Visual Studio to knock out console apps left and right to perform a number of specialized tasks using the SharePoint Object Model. However, with my latest engagement being primarily focused ...

2023-02-16T16:02:04+00:00

Renaming a SharePoint 2010/2013 Server

Have you ever found yourself in the situation where you wished you had named your SharePoint server differently? Renaming that server isn’t exactly straight forward. You can’t simply rename the machine and call it good. SharePoint contains many references to the name of your machine throughout its database, and all of these must be changed as well. Luckily, Microsoft has provided us with a handy PowerShell cmdlet called Rename-SPServer to make most of these changes. There’s more to it than just this command, however, so I’m going to go through all of the steps that I have a lot of success with. In a nutshell, we’re going to first rename the server in SharePoint’s eyes using PowerShell, then actually rename the machine itself, fix a few things neither of those two steps updated for us and run an upgrade command. And we should be doing all of this as the ...

2023-02-16T16:02:04+00:00