PowerShell 技能连载 - 检测挂起的重启
下面的代码检测是否有挂起的重启:
1 | $rebootRequired = Test-Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\RebootPending" |
PowerShell 技能连载 - 检测挂起的重启
http://blog.vichamp.com/2021/12/03/check-for-pending-reboot/