How to Check Software Center Business Hours of Remote Computer | ConfigMgr

While troubleshooting software update deployment on a client computers I come across a situation that software updates were not getting deployed. One of thing, I wanted to check if user defined service windows (non – business hours) time is sufficient for software updates deployment.

While we can check the software center user defined business hours quickly on local computer, the same approach do not work for a remote computers. The first option we always explore is to perform the task remotely without taking the remote control of end user devices.

You can use below PowerShell script to quickly check the SCCM Software Center business hours configured on a computer.

$computer = "Desktop01"
$cmClientUserSettings = [WmiClass]"\\$computer\ROOT\ccm\ClientSDK:CCM_ClientUXSettings"
$businessHours = $cmClientUserSettings.GetBusinessHours()
$businessHoursCI = [string]$businessHours.StartTime + "," + [string]$businessHours.EndTime + "," + [string]$businessHours.WorkingDays
#Return $businessHoursCI

Write-Host "Business Hours"
Write-Host "--------------"
Write-Host "Start Time   : $($businessHours.StartTime)"
Write-Host "End Time     : $($businessHours.EndTime)"
Write-Host "Working Days : $($businessHours.WorkingDays)"

Write-Host ""
Write-Host "Days of the week are calculate with this table : Sun=1, Mon=2, Tue=4, Wed=8, Thu=16, Fri=32, Sat=64"
Write-Host "Monday – Friday is calculated as 2+4+8+16+32 = 62"

The below article have good explanation of checking Software center business hours with PowerShell and remediate the same using Compliance Settings.

You can also identify the software center business hour for the day by looking into UpdatesDeployment.log file on client computer. You can refer SERVICEWINDOWEVENT START and SERVICEWINDOW END Event. See the below example. The Service Window (Non – Business hours) started at 22:00 hours and Ended at 05:00 hours. So, all required software updates will get installed during this time.

SCCM UpdateDeployment.log | Software Center Business Hours

Related Posts:

Subscribe to Techuisitive Newsletter

Be the first to know about our new blog posts. Get our newsletters directly in your inbox and stay up to date about Modern Desktop Management technologies & news.

Scroll to Top