Close Menu
    Facebook X (Twitter) Instagram
    Saturday, October 11
    X (Twitter) LinkedIn Reddit RSS
    All about Endpoint Management
    • Home
    All about Endpoint Management
    Home»CM2012»SCCM Configmgr How to get list of deployments set to ignore maintenance window and Reboot Outside maintenance window

    SCCM Configmgr How to get list of deployments set to ignore maintenance window and Reboot Outside maintenance window

    Eswar KonetiBy Eswar KonetiJanuary 03, 7:07 pm3 Mins Read CM2012 9,427 Views
    Share
    Facebook Twitter LinkedIn Reddit

    Introduction:

    Few months ago ,we had an issue with one of the deployment (it was software updates) that was deployed to collection with override service window due to emergency patch to be installed on the clients.

    Deployment went fine and results were positive .All good ,but after few days ,some clients were added to the above deployed collection and you know what, as soon the clients are added to the collection ,they had new policy now and try to perform scan against the deployed software updates to check if they are already installed or not ,if not installed ,they try to install right away due to the setting ‘Override Service Window’ .What happens after the installation ? If the patch you have deployed to the collection require reboot ,it will check if there is any MW available to reboot ,if there is no maintenance window, it will reboot else wait for the maintenance window.

    Unfortunately ,some of the newly added clients had maintenance window on different collection on the next few days ,which no one noticed and client REBOOTED .

    For sure if there is any such unplanned reboot occur, you must be in position to explain with root cause and how are you going to prevent such issues in the future with RCA (Root cause analysis).

    So a request came to identify/create report that will help us to identify how many such deployments (it can be application,package or software update ) do exist with OverrideServiceWindows and RebootOutsideOfServiceWindows options selected.

    Have got some time to allocate for this request ,so am posting it here for you guys incase you need to identify such deployments (applications,packages,software updates,baselines) .

    Below screen show the Deployment settings under User experience Tab with User notifications,deadline behavior and device restart behavior settings.

    image

     

    How to get list of deployments with OverrideServiceWindows and RebootOutsideOfServiceWindows selected ?

    To get information about OverrideServiceWindows and RebootOutsideOfServiceWindows for deployments, you need to first identify the right SQL views in SCCM.

    All Deployments information (packages,applications,baselines ,software updates) stored in view called: v_CIAssignment

    So have used this view to retrieve the information and put it in a nice SSRS report with options to choose OverrideServiceWindows and RebootOutsideOfServiceWindows  Yes or No.

    How to identify if the deployment is package or application or software update ?

    Use the below numbers to identify the deployment or package type.

    When 0 Then 'Package'
    When 2 Then 'Application'
    When 3 Then 'Driver'
    When 4 Then 'Task Sequence'
    When 5 Then 'Software Update'
    When 7 Then 'Virtual'
    When 257 Then 'Image'
    When 258 Then 'Boot Image'
    When 259 Then 'OS Package'

    Below is the report how it looks like: you can choose the options what you want and based on the selection ,report will give you the deployment information.

     

    image

     

    As usual ,have posted the report into TechNet Gallery ,download it from Here ,upload it your SSRS reports ,change the data source and run it.

    assignmenttype configmgr deadline behavior Deployment report with supress reboot ignore maintenance window OverrideServiceWindows reboot maintenance window RebootOutsideOfServiceWindows report for ignore MW SCCM sccm report SQL code supress device restart
    Share. Twitter LinkedIn Email Facebook Reddit

    Related Posts

    SCCM SQL Report – Compare Installed Apps on TWO Different Computers

    July 13, 10:35 am

    Optimize Your Intune Workflow with a Powerful Browser Extension

    March 22, 10:39 am

    Migrate Microsoft 365 Updates from SCCM/MECM to Intune for Co-Managed Devices

    February 11, 9:50 pm

    6 Comments

    1. Ed KK on December 20, 2022 5:34 AM

      Is this report still available? I could not locate it at the link any longer

      Reply
      • Eswar Koneti on January 14, 2023 5:00 PM

        Hi,
        Since the technet gallary is down, you can use this method to download the reports or search in github page of mine
        https://eskonr.com/2021/02/did-you-miss-to-download-your-samples-from-technet-gallery-here-is-how-you-can-do-it/

        Thansk,
        Eswar

        Reply
    2. Ed on December 20, 2022 5:30 AM

      Is this report still available? Going to the link... I can't seem to locate it any longer

      Reply
    3. Michael on January 9, 2017 10:54 PM

      should the report show immediately the new situation after changing an Deployment? I have some automatic deployment rules with OSW=false and ROOSW=true. I changed the deployment to OSW=true and ROOSW=false. The report after minutes still shows the old situation. Another non ADR Deployment vanished from the report after changing the deployment without a problem. Is there a difference with ADR deployments? Thank you, Michael

      Reply
      • Eswar Koneti on January 12, 2017 5:59 PM

        Hi Michael,
        Nope ,after you change the properties of the deployment ,it will get update in database and Query takes from SQL. Although you change in deployment but report is not updated, it requires deep troubleshooting.
        Try to refresh the report after 5 min or so to see if that makes any difference.

        Regards,
        Eswar

        Reply
    4. Lukholo Jeneto on January 4, 2017 2:34 AM

      Perfect and very helpful..

      Reply

    Leave a ReplyCancel reply

    This site uses Akismet to reduce spam. Learn how your comment data is processed.

    Sign Up

    Get email notifications for new posts.

    Author

    I’m Eswar Koneti ,a tech enthusiast, security advocate, and your guide to Microsoft Intune and Modern Device Management. My goal? To turn complex tech into actionable insights for a streamlined management experience. Let’s navigate this journey together!

    Support

    Awards

    Archives

    © Copyright 2009-2025 Eswar Koneti, All rights reserved.

    Type above and press Enter to search. Press Esc to cancel.