是否有任何编程方式可以强制 Windows 检查更新?我已使用 Windows Update API 安装了更新,但以下屏幕未更新。

Windows 更新 API 表示需要重新启动 -
PS C:\Windows\system32> $rebootRequired = (New-Object -ComObject "Microsoft.Update.SystemInfo").RebootRequired
echo $rebootRequired
True
Run Code Online (Sandbox Code Playgroud)
我以管理员身份尝试了以下命令,但没有一个刷新屏幕 -
wuauclt.exe /updatenow
wuauclt.exe /detectnow
Run Code Online (Sandbox Code Playgroud)
谢谢!