a very good blog on this topic:http://blogs.technet.com/b/smartinez/archive/2014/06/27/reboot-pending-report-how-to-create-the-report.aspx A simple way would be to create a DCM with something like:$reboot = [wmiclass]"\\localhost\root\ccm\ClientSDK:CCM_ClientUtilities"
$result = $reboot.DetermineIfRebootPending() | Select RebootPending Write-Host $result.RebootPending From: [email protected] To: [email protected] Subject: [mssms] RE: Two questions Date: Mon, 16 Nov 2015 18:50:06 +0000 I would think you could use the States 4 – Computers in a specific state for a deployment report. From: [email protected] [mailto:[email protected]] On Behalf Of Damien Solodow Sent: Monday, November 16, 2015 12:36 PM To: [email protected] Subject: [mssms] Two questions Two (hopefully) easy questions on which my Google-FU is failing. SCCM 2012 R2 SP1. Is the an easy/straightforward way to find out: 1) PCs that have a pending/required reboot for software updates? 2) Who (if anyone) is currently logged into a device (PC)? #1 is so we can see which machines need to reboot to have their latest batch of software updates take effect (seems like something that would be a report). #2 is so that if we need to remote control a classroom/lab PC to resolve something we can tell if it’s in use and defer. DAMIEN SOLODOW Senior Systems Engineer 317.447.6033 (office) 317.447.6014 (fax) HARRISON COLLEGE 500 North Meridian St Suite 500 Indianapolis, IN 46204-1213 www.harrison.edu
