Close Menu
    Facebook X (Twitter) Instagram
    Sunday, October 12
    X (Twitter) LinkedIn Reddit RSS
    All about Endpoint Management
    • Home
    All about Endpoint Management
    Home»CM2012»SCCM Report Get list of devices with pending reboot in a collection with different states

    SCCM Report Get list of devices with pending reboot in a collection with different states

    Eswar KonetiBy Eswar KonetiJanuary 21, 1:18 pm5 Mins Read CM2012 45,249 Views
    Share
    Facebook Twitter LinkedIn Reddit

     

    Beginning with the release of SCCM ConfigMgr Build 1710 or later , you can use the SCCM Console to identify client devices that require a restart, and then use a client notification action to restart them. If you want get this feature enabled on the client side ,you must also upgrade clients to version 1710 or later for this capability to function

    This become so much easier for SCCM engineers to restart the device with just one click .

    To identify devices that are pending a restart, you can go to the Assets and Compliance workspace and select the Devices node ,then right click on the right side details pane in a new column named Pending Restart.

    image

    Once you choose this, you can sort with pending restart to see list of all devices with client state .

    image

    Each device has one or more of the following values:

    • No: there is no pending restart
    • Configuration Manager: this value comes from the client reboot coordinator component (RebootCoordinator.log)
    • File rename: this value comes from Windows reporting a pending file rename operation (HKLM\SYSTEM\CurrentControlSet\Control\Session Manager, PendingFileRenameOperations)
    • Windows Update: this value comes from the Windows Update Agent reporting a pending restart is required for one or more updates (HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\RebootRequired)
    • Add or remove feature: this value comes from the Windows component-based servicing reporting the addition or removal of a Windows feature requires a restart (HKLM\Software\Microsoft\Windows\CurrentVersion\Component Based Servicing\Reboot Pending)

    To restart the device ,you can simply right Right-click on the device, select Client Notification, and then select Restart. An information window opens about the restart. Click OK to confirm the restart request.

    image

    When the notification is received by a client, a Software Center notification window opens to inform the user about the restart. By default, the restart occurs after 90 minutes. You can modify the restart time by configuring client settings.

    Settings for the restart behaviour are found on the Computer restart tab of the default settings.

    If you want to know the list of pending reboot devices ,it is not always good to follow the steps that we did above .It doesn't give us the number of devices pending with reboot also ,you need to add the column and sort to find out how many.

    In this blog post ,what we will see on how to create a dynamic collection that list all devices with pending reboot. This collection always be on your check list for troubleshooting.

    Also ,i will get you nice SSRS report/s that show you the count of pending reboot devices against the collection Operating System and then it will have drilldown report to see list of all clients with client inventory.

    Before we start creating collection with pending reboot ,we need to know ,where does this information store in WMI. Collection uses WQL hence you need to have the class and instance name.

    Restart information stored in sms_combineddeviceresources with value clientstate.

    Anything that is not 0 (clientstate!=0) will be treated as pending reboot.

    Following are the list of applicable states you get with client pending reboot.

    1 – Configuration Manager
    2 – File Rename
    3 – Configuration Manager, File Rename
    4 – Windows Update
    5 – Configuration Manager, Windows Update
    6 – File Rename, Windows Update
    7 – Configuration Manager, File Rename, Windows Update
    8 – Add or Remove Feature
    9 – Configuration Manager, Add or Remove Feature
    10 – File Rename, Add or Remove Feature
    11 – Configuration Manager, File Rename, Add or Remove Feature
    12 – Windows Update, Add or Remove Feature
    13 – Configuration Manager, Windows Update, Add or Remove Feature
    14 – File Rename, Windows Update, Add or Remove Feature
    15 – Configuration Manager, File Rename, Windows Update, Add or Remove Feature

    Create a device collection ,choose query based and paste the following WQL Code into it.

    select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,
    SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,
    SMS_R_SYSTEM.Client from SMS_R_System join sms_combineddeviceresources on
    sms_combineddeviceresources.resourceid = sms_r_system.resourceid
    where sms_combineddeviceresources.clientstate != 0

    image

    we have just created a collection to know the list of devices with pending reboot. You can now decide if you can reboot them using client notification or not.

    image

    How to reboot all devices at once ? you cannot do it by right click on collection , you must go into the collection ,choose all devices ,right click and do client notification . Collection level do not have reboot option.

    Now we will look at SSRS report.

    With the information that is available in SCCM ,we can have variety of reports however ,i am going with following customisations.

    A report with custom collection and device restart type (Configuration Manager ,Add or Remove Feature etc ,multiple) .  It will show you count of Pending restart devices by Operating System.

    The count will have drill down report to show list of clients with inventory information like last hardware inventory, IP address, last MP ,software update scan etc.

    Parent Report:

    image

    Click on Pending Restart count appear in Blue colour to see list of all clients of that particular OS.

    Child Report (Drilldown Report):

    Child report has 3 parameters: Collection name ,Restart state name and OS .All these parameters will be passed to child report from parent report.

    image

    You might see pending reboot for clients that are inactive and this because , client never reported back to SCCM after pending restart status message and it will remain same until the device comes online and report its status.

    You must run parent report to go child report. If you try to run child report directly ,you will run into issues which is expected and is because of hidden parameters in child report.

    How to get the reports ?

    Download the RDL files from Technet Gallery ,extract it ,upload the files to your SSRS reports (make sure both the reports in same folder location) ,change the datasource and run the reports.

    Reference:

    https://blogs.technet.microsoft.com/meamcs/2019/01/10/understanding-and-using-the-pending-restart-feature-in-sccm-current-branch/

    client notification client state collection for pending restart combineddeviceresources configmgr Pending Restart RebootCoordinator restart client SCCM SCCM report for pending restart SQL SSRS Report WQL for pending 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

    10 Comments

    1. Manny on February 15, 2022 10:56 AM

      i have created a collection for the systems which are not rebooted for past n days and wanted to trigger reboot (with the reboot window mentioned in the client setting )

      Reply
      • Eswar Koneti on February 23, 2022 8:40 AM

        Hi Manny,
        There are various options to reboot the devices that are pending. You can use client notification to restart which inherit the client settings or schedule a toast notification to prompt user to reboot etc.

        Thanks,
        Eswar

        Reply
    2. Pingback: Client Restart Pending Status in Configuration Manager Console | Garnik Markaryan's blog

    3. Meni on March 8, 2020 10:41 PM

      Hi Eswar,
      Where change the prompt value to show from hide?
      Thanks

      Reply
      • Eswar Koneti on March 15, 2020 10:16 AM

        You can change the prompt settings either using report builder or in SSRS reporting services, properties of the report.

        Thanks,
        Eswar

        Reply
    4. Joel Mason on September 4, 2019 6:37 PM

      Hello, This is very useful. However when it is scheduled the report will not have run day after day and in the state in SCCM says "this report contains parameters that are not valid" i would then need to go back to the subscription and re select the restart values? please help? Thanks

      Reply
    5. michael welten on April 2, 2019 4:30 PM

      Hello,
      Got this error: The 'CollectionID' parameter is missing a value, when running the report "List of clients with Restart Pending".
      The other report "Count of Clients Restart Pending by OS" is working just fine.
      Both reports are on the same folder.
      Thanks in advance for your help.
      Michael Welten

      Reply
      • Eswar Koneti on April 15, 2019 10:20 PM

        Hi,
        Please edit the 2nd report and change the collectionID prompt value to show from hide .That will tell you whether the value of collection ID is passsing as parameter to linked report or not.
        I tried it and it works fine for me.

        thanks,
        Eswar

        Reply
        • Tonya Bentley on April 15, 2021 4:30 AM

          Hi Eswar, any chance you have an updated link for the reports?

          Reply
          • Eswar Koneti on May 17, 2021 1:04 AM

            Hi Tonya,
            The reports available to download from the following link. i have uploaded all technet gallary reports in my github account.

            http://web.archive.org/web/20200318064508/https://gallery.technet.microsoft.com/SCCM-Report-Clients-with-dff28d03
            Github account https://github.com/eskonr/

            Thanks,
            Eswar

            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.