Windows 10 will install updates whether you want them or not, and if a restart is required, it will ask you for a while and then eventually it will restart itself. This is designed into the OS. If the PC is performing as a server, it would be quite handy to know that this is going to happen, so that you can logon and initiate the reboot at a time that won't cause mishaps to occur. Is there any way to get PASM to monitor this and let me know that a restart is required?

asked 14 Sep '16, 12:35

MarmiteSandwich's gravatar image

MarmiteSandwich
3226
accept rate: 0%


Hi

Thanks for the question. We don't have a monitor that is setup to report on penning reboots. We have had a few customers ask about that and we have added that to our to do list.

Some customers have used the Execute Script Monitor and write their own code to check for pending reboots. You might try that.

Thanks
Quinn

Please make sure to mark your questions accepted when you have your answer by clicking the gray check mark to the left of the answer.

link

answered 14 Sep '16, 15:07

Quinn's gravatar image

Quinn ♦♦
14.5k3925
accept rate: 35%

You can use info in this link: https://itfordummies.net/2016/09/06/read-remote-registry-powershell/

I went another route using Invoke-Command and Test-Path. I already have an active PS Session to the desired server, so that is why it's in this example.

Example: Invoke-Command -Session $session -ScriptBlock { Test-Path -Path "HKLM:SOFTWAREMicrosoftWindowsCurrentVersionComponent Based ServicingRebootPending" }

If that key doesn't exist, no reboot pending :)

link

answered 11 Oct '16, 13:21

TheSemicolon's gravatar image

TheSemicolon
33810
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×6
×1

Asked: 14 Sep '16, 12:35

Seen: 4,790 times

Last updated: 11 Oct '16, 13:21