Windows 10 and Server 2016 (and later) have the concept of active hours. These are the hours you define as working hours in effect. This is how you get active hours for a system
$sb = {
param([string]$computerName)
$ahs = Get-Item -Path HKLM:SOFTWARE… Read the full text.