SharePoint 2013 Maintenance Window Notifications


In case you missed it, SharePoint 2013 introduced a new class named SPMaintenanceWindow.  This class makes it super easy to notify your users of upcoming maintenance to your SharePoint Farm at the Content Database level.

I read a blog post by Joe Rodgers a Microsoft SharePoint PFE who demonstrated what can be done with this class using PowerShell.  If you have access to your production environments to run PowerShell great, of course this is not always the case.  I have found over the past few years that getting direct access to production and staging environments is becoming less and less likely.

Basically the class allows you to specify information which is presented in a banner for the sites whose Content Databases maintenance windows have been set.  Joe outlines all of the different possibilities in his blog post so I won’t repeat that here.

Multiple Day Maintenance Warning with a duration and more information link specified.

Multiple Day Maintenance Warning with a duration and more information link specified.

 

Wouldn’t it be nice if I could do this from Central Administration instead of PowerShell.

This is pretty sweet and all I needed was an admin page in Central Administration.  These is very easy to do with Visual Studio 2013 RC, Microsoft has a short walkthrough to get you started deploying a page under the _admin virtual directory (it is for 2010 but still applies).

Maintenance Window Notifications Configuration Page

Maintenance Window Notifications Configuration Page

The current version sets the same Maintenance Window for all of the Content Databases and allows you to clear the Maintenance Window also.  The next version of it I want to add functionality to set a Maintenance Window for a specific Content Database or the Content Databases in a Web Application.

 

 

 

 

 

 

About wesmacdonald

Wes MacDonald is a Visual Studio ALM MVP, MCT, MCTS, MCITP (SharePoint) and a Principal Consultant for LIKE 10 INC., a SharePoint Server, Visual Studio and Team Foundation Server Consulting Firm providing premium support and guidance services.

One Response to “SharePoint 2013 Maintenance Window Notifications”

  1. Now THAT would be very handy!
    Thanks,
    T

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 1,115 other followers

%d bloggers like this: