PSWindowsUpdate icon indicating copy to clipboard operation
PSWindowsUpdate copied to clipboard

Get-WURebootStatus - disable yes/no question

Open Orava2 opened this issue 11 months ago • 1 comments

Hello

How can I disable the Y/N question? I don't want to reboot. I just want to get the info ComputerName RebootRequired and RebootScheduled.

PS C:\WINDOWS\system32> Get-WURebootStatus

Reboot is required. Do it now? [Y / N] (default is 'N')
n
ComputerName RebootRequired RebootScheduled
------------ -------------- ---------------
COMP              True

Get-WURebootStatus -Silent does not show the Y/N question but also does not show ComputerName RebootRequired and RebootScheduled.

Orava2 avatar Jan 20 '25 06:01 Orava2