PowerShell


My New Book: SharePoint 2013 WCM Advanced Cookbook [Packt]

My new book, SharePoint 2013 WCM Advanced Cookbook, was published yesterday. It’s available on Amazon.  You can also download a sample chapter from the Packt website. Amazon: http://tinyurl.com/lutktay Sample Chapter: http://tinyurl.com/mqup5lb What you will learn from this book Manage SharePoint branding with device channels and design packages Customize the user experience with delegate controls Modify user input with InfoPath […]

[SharePoint 2013] Using PowerShell to Set the Theme Color Palette of a SharePoint Site

SharePoint 2013 includes a pretty useful theming engine that is light years ahead of previous versions of SharePoint. There is one caveat that is a bit annoying: you cannot apply the themes to certain types of sites through the web interface. For instance, you cannot set the theme color of the My Site host. However, […]

[PowerShell] How To Debug a Custom C# PowerShell Cmdlet

In my previous couple of posts I have been discussing how to write a custom PowerShell Cmdlet in C# ([PowerShell] Write a Custom PowerShell Cmdlet in C# and [PowerShell] Using Common Verbs for Custom PowerShell Cmdlets in C#). When developing custom PowerShell Cmdlets in C# you will probably come across the need to debug them […]

[PowerShell] Using Common Verbs for Custom PowerShell Cmdlets in C#

In my previous post, [PowerShell] Write a Custom PowerShell Cmdlet in C#, I mentioned that the commond verbs built-in to PowerShell should be used whenever possible. Here is a listing of all of the common PowerShell verbs available in PowerShell 2.0: VerbsCommon Add Clear Close Copy Enter Exit Find Format Get Hide Join Lock Move […]

[PowerShell] Write a Custom PowerShell Cmdlet in C#

Particularly with SharePoint 2010, I have become a huge fan of Microsoft PowerShell. In addition to writing complex PowerShell scripts (.ps1 files), I have found it very useful to write my own C#-based PowerShell Cmdlets to use in my scripts. This basic tutorial illustrates how to create a basic PowerShell Cmdlet with a couple of […]

[SharePoint 2010] Web Analytics: Monitors the health of the Report Consolidator component

When the SharePoint Web Analytics Service Application takes longer than five hours to process the Health Monitor will report the “Web Analytics: Monitors the health of the Report Consolidator component” for review. It offers the following explanation: With the following suggested remedy: The provided link instructs on how to reduce the amount of records processed, […]

[SharePoint 2010] Set Access Request Email for All SharePoint Sites

I recently needed to set the email address that Access Requests from SharePoint 2010 go to for all sites int the Web Application. Since there is no way to do this in bulk within the interface, I found this blog post outlining a useful PowerScript commant that parses through each SPWeb and sets the Access […]

[SharePoint 2010] Move All My Sites – Personal Sites – From One Content Database to Another With PowerShell

In one of my SharePoint 2010 farms we have all of our My Sites under the same web application as our main SharePoint portal. For example, we have http://portal as our intranet portal with all of the My Sites under http://portal/personal. In this particular case, the users make heavy use of the My Sites for […]