Tag: PowerShell
SPWebApplication Class
[toc] Namespace Microsoft.SharePoint.Administration Assembly Microsoft.SharePoint.dll A SharePoint Server web application is composed of an Internet Information Services (IIS) web site that acts as a logical unit for the site collections that you create. Before you can create a site collection, you must first create a Web application. Each web application is represented by a different […]
Continue ReadingExport-SPAllSitesForMigration
[toc] Function Name Export-SPAllSitesForMigration Download Source Code Export-SPAllSitesForMigration.zip Description The code in this module will gather all site collections in your farm and write the details to a CSV file. The CSV file will be formatted to support a migration effort. Parameters Parameter Name $CsvFilename Data Type [System.String] Required Yes Description Use this parameter to specify […]
Continue ReadingPowerShell and SharePoint Modules
[toc] There are a lot of posts about creating modules, for SharePoint, in PowerShell. I decided to write this post so everything I’ve learned is in one place. I’m hoping you learn something from this (as I did). I have tested the code in this article in SharePoint On-premise 2010, 2013 and 2016. Modules do […]
Continue ReadingPowerShell: Retrieve All Sites With or Without Personal Sites (MySites)
[toc] I love using the pipeline in PowerShell. Recently I was in a situation where, if a PS script what a one-liner I didn’t have to submit it through the review/approval/change management process. Its amazing what you can do in PowerShell in a single line of code! Retrieve all site collections, for all web applications […]
Continue ReadingDebugging SharePoint Issues and ULS Log Files
I often see administrators and developers new to SharePoint find debugging difficult and complex. When working with SharePoint, log files are your friend. In large on-premise farms, locating issues within large log files can be time consuming and sometimes difficult. When I am presented with an error that contains a correlation ID, I first resort […]
Continue ReadingAutoSPInstaller: SharePoint 2013 March 10, 2015 CU (KB2956166)
[toc] The AutoSPInstaller tool is not something I’ve written about in the past. I’m not sure why because its a fantastic tool and I use it on a regular basis. In general, it is a PowerShell based SharePoint installation tool. If you are unfamiliar with it, I do recommend you take a look at it […]
Continue Reading