ConfigMgr 101: Maintenance Windows

Welcome to ConfigMgr 101. This series will be focusing on ConfigMgr 2012, and helping you get the best out of the product using features you may have not looked at in ConfigMgr 2007 or features which are new in ConfigMgr 2012. Our first post looks at the maintenance windows concept, how to use them, what they are and why you should use them.

In a nutshell, maintenance windows do exactly what they say on the tin. The maintenance window helps you define a set period of time when configuration changes can be made to systems while not impacting the productivity of your business. The following features support the use of maintenance windows.

  • Software deployment
  • Software update deployment
  • Compliance setting evaluation and deployment
  • Operating system deployments
  • Task sequence deployments

Maintenance windows are configured on a per collection basis and consist of a start time, end time and recurrence pattern. The only real rule for maintenance windows is that you must define the maintenance window of less the 24 hours. Since ConfigMgr 2012 restarts caused by deployments are not allowed outside of maintenance window hours however you can override these settings on a per deployment basis. Maintenance windows affect only the time when the deployment program runs, applications configured to download and run locally can download content outside of the maintenance window.

Multiple Maintenance Windows

So now we know what a maintenance window is, what features support them and how they work. The next step is to look at instances when we have multiple maintenance windows. Imagine the following scenario which is common in a live environment, we have a machine LAB1 which is a member of two collections which both have maintenance windows, which one takes priority or how does that work?

Well, these simple rules apply for when this situation arrises:

  • If maintenance windows do not overlap then they are treated as separate maintenance windows
  • If the maintenance windows do overlap, it will be treated as a single maintenance window including all the time covered by both maintenance windows. For example, if you have two maintenance windows both an hour-long which overlap by 30 minutes, then the duration will be 90 minutes

When a user initiates an application installation from Software Center, the application is installed immediately, regardless of any configured maintenance windows.

If an application deployment with an intent of required reaches its installation deadline during the non-business hours configured by a user in Software Center, it is installed regardless of the configured non-business hours.

Configuring Maintenance Windows

Setting up maintenance windows could not be easier. Simply right-click a collection and then go to Properties. Click the Maintenance Windows tab where you will be presented with the place where the magic happens. Click the starburst button to create a new maintenance window.

Configure your maintenance window as required, in this example we are setting the window between 01:00 and 04:00, we are also running the window on a monthly schedule on the last Friday of the month. We also leave the box for UTC un-ticked, this is so we can apply the maintenance window in the local time in the country where the machine is located.

We now have a maintenance window. If you want another one then go ahead and create them. This is basically all you need to do. From here schedule your deployments and you will see in the Software Center that it is now ready and waiting.

This concludes the first post in my ConfigMgr 101 series, hope it answered some questions for you. Next we will be looking the user-centric application model, how business hours work and much more.

About these ads

14 thoughts on “ConfigMgr 101: Maintenance Windows

  1. John

    Thanks for the great writeup. I’ve been using SCCM 2012 for a little while, but just came across something I haven’t seen. I had a deployment scheduled for a particular weekend. However, something came up and we had to delay. I unchecked the maintenance window, so that it wouldn’t be enabled and verified that the deployment settings wouldn’t do any installations or reboots outside of the window. However, the deployment ran anyway! Any ideas on why that might have happened, or how we can prevent it in the future?

    Thanks!

    Reply
    1. Martyn Post author

      Hey John,

      Did the machine belong to another collection with another maintenance window that made it run? You can check the logs on the client to see what happened.

      Thanks.

      Reply
      1. John

        Yeah, I’d checked – no other windows. The only thing that I can think of (and I think this is what happened) is the policy retrieval cycle didn’t run in time for the clients to “learn” that the window had been disabled. I know how to manually kick that off, but do you know if there’s a way to change that default retrieval cycle setting? So that instead of doing it every week, I could have that run every day, or whatever.

      2. Martyn Post author

        The default policy retrieval is 60 minutes, you can change it in the client settings node under the Administration workspace.

      3. John

        Thanks. I’ve got mine set to 15 minutes, but it looks like that’s not working quite right, since the logs indicate it’s only happening once a week on its own. I’ll do some digging and see if I can find out why. I appreciate the help!

      4. Martyn Post author

        I think we are talking about two different things, policy retrieval is for client settings and distributions etc.

  2. Pingback: ConfigMgr 101: Client Deployment | Martyn Coupland

  3. Charlotte Patin

    I have what is probably a very basic question, but I am new to SCCM. If you have a maintenance window defined for a collection, what does SCCM do with the regular schedule tab in the deployment wizard? If I tell it to make it available ASAP, will it download to the client, and then wait to install it during the maintenance window? I am trying to get my head around this. Thank you.

    Reply
    1. Martyn Post author

      Hi Charlotte, spot on, if you select “as soon as possible” in a software update or similar anywhere else it will wait for the maintenance window to open.

      Reply
      1. Raj

        I select ” as soon as possible” option, but it not installed under maintenance window…updates installed as per deadline schedule….i am using required update option.

        Not check on any box for installing updates on outside maintenance window.

        What was the issue?

  4. Pingback: ConfigMgr 101: Client Deployment | All Things ConfigMgr

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 )

Connecting to %s