Read the current restart policy
**Get-ItemProperty** on the WindowsUpdate policy key shows the active hours and the auto-restart settings. A managed device may have them pinned by group policy.
Get-ItemProperty 'HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings' | Select-Object ActiveHoursStart,ActiveHoursEnd,SmartActiveHoursState,IsExpedited
Get-ItemProperty 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU' -ErrorAction SilentlyContinue | Select-Object NoAutoRebootWithLoggedOnUsers,AUPowerManagement