Hi Jason,

This seems to be the most comprehensive solution. I've posted a comment on that 
article asking if Santos has any thoughts on working his process into my 
requirement of rebooting servers pending a reboot 30 mins prior to update 
installation. Here's hoping.

Daniel.

From: listsad...@lists.myitforum.com [mailto:listsad...@lists.myitforum.com] On 
Behalf Of Jason Wallace
Sent: Wednesday, 2 July 2014 9:15 PM
To: mssms@lists.myitforum.com
Subject: RE: [mssms] RE: Reboot servers pending a reboot prior to updates

Hi John

If you are looking for devices with a pending reboot then 
http://blogs.technet.com/b/smartinez/archive/2014/06/27/reboot-pending-report-how-to-create-the-report.aspx
 would offer you an end to end solution for any reboots pending

Jason

________________________________
From: jaub...@norwoodmedical.com<mailto:jaub...@norwoodmedical.com>
To: mssms@lists.myitforum.com<mailto:mssms@lists.myitforum.com>
Subject: [mssms] RE: Reboot servers pending a reboot prior to updates
Date: Wed, 2 Jul 2014 11:09:25 +0000
Mine isn't as complex as this, but it only checks for pending reboots from 
Windows Update.  It wouldn't be hard to add the other pending reboot location 
in there as well.

$reboot =Test-Path 
'hklm:SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto 
Update\RebootRequired'

if ($reboot -eq 'True'){Restart-Computer localhost -force}ELSE {}


This is the command I push out to use it.  I ran into issues with 32 vs. 64 bit 
powershell and hitting different parts of registry.

%systemroot%\sysnative\windowspowershell\v1.0\powershell.exe -executionpolicy 
unrestricted .\NeedReboot.ps1




From: listsad...@lists.myitforum.com<mailto:listsad...@lists.myitforum.com> 
[mailto:listsad...@lists.myitforum.com] On Behalf Of Corkill, Daniel
Sent: Wednesday, July 2, 2014 2:32 AM
To: mssms@lists.myitforum.com<mailto:mssms@lists.myitforum.com>
Subject: [mssms] Reboot servers pending a reboot prior to updates

I want to advertise a script to servers during our maintenance window, 30mins 
prior to the updates deadline, that will check for reboots pending on the box 
and if there are any, reboot it.

I've found the get-rebootpending PS script here: 
http://gallery.technet.microsoft.com/scriptcenter/Get-PendingReboot-Query-bdb79542#content
 but it's unclear to me whether this will pickup reboots pending from new 
device installs, which is important to us. Someone asks for this functionality 
in the comments but it's never subsequently mentioned. There also doesn't 
appear to be anyway to use this script to trigger a reboot if one is pending.

Is anyone else using something similar?

Daniel.






*********************************************************************

This email, including any attachment, is confidential to the intended 
recipient.  It may also be privileged and may be subject to copyright.  If you 
have received this email in error, please notify the sender immediately and 
delete all copies of the email.  Any confidentiality or privilege is not 
waived.  Neither the Council nor the sender warrant that this email does not 
contain any viruses or other unsolicited items.



This email is an informal Council communication.  The Council only accepts 
responsibility for information sent under official letterhead and duly signed 
by, or on behalf of, the Chief Executive Officer.



Privacy Collection Notice

Logan City Council may collect your personal information, e.g. name, 
residential address, phone number etc, in order to conduct its business and/or 
meet its statutory obligations. The information will only be accessed by 
employees and/or Councillors of Logan City Council for Council business related 
activities only. If your personal information will be passed onto a third 
party, Council will advise you of this disclosure, the purpose of the 
disclosure and reason why. Your information will not be given to any other 
person or agency unless you have given us permission or we are required by law.






*********************************************************************
This email, including any attachment, is confidential to the intended 
recipient.  It may also be privileged and may be subject to copyright.  If you 
have received this email in error, please notify the sender immediately and 
delete all copies of the email.  Any confidentiality or privilege is not 
waived.  Neither the Council nor the sender warrant that this email does not 
contain any viruses or other unsolicited items.

This email is an informal Council communication.  The Council only accepts 
responsibility for information sent under official letterhead and duly signed 
by, or on behalf of, the Chief Executive Officer.

Privacy Collection Notice
Logan City Council may collect your personal information, e.g. name, 
residential address, phone number etc, in order to conduct its business and/or 
meet its statutory obligations. The information will only be accessed by 
employees and/or Councillors of Logan City Council for Council business related 
activities only. If your personal information will be passed onto a third 
party, Council will advise you of this disclosure, the purpose of the 
disclosure and reason why. Your information will not be given to any other 
person or agency unless you have given us permission or we are required by law.



Reply via email to