PSWindowsUpdate
PSWindowsUpdate copied to clipboard
Get-WURebootStatus - disable yes/no question
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.