Monterey Beta 4 MDM Software Updates Query Failing

With Monterey beta 4 (and 1) Intel based macs (and VMs) will not respond to MDM commands asking for available software updates. Devices have been enrolled with Automated Device Enrollment and confirmed to have supervision.

There are several errors like this one in console around software updates

implicitly decoded. Consider reducing the scope of allowed classes during decoding by listing only the classes you expect to decode, or a more specific base class than NSObject. This will become an error in the future. Allowed class list: {(
  "'NSObject' (0x7ff85029c3c8) [/usr/lib]"
)}
NSXPCInterface: <NSXPCInterface: 0x7fc8e9417670>
Protocol: _CDUserContextServerMonitoring
SEL: handleContextualChange:info:handler: (3 arguments, 0 proxies)
 Classes: [NSString, {NSData, NSString, NSDate, NSDictionary, NSNull, NSOrderedSet, NSSet, NSNumber, NSArray}, {}]
 Reply block: (arg #4, (1 arguments, 0 proxies), signature 'v@?c') [{}]
SEL: handleRegistrationCompleted:handler: (2 arguments, 0 proxies)
 Classes: [NSString, {}]
 Reply block: (arg #3, (1 arguments, 0 proxies), signature 'v@?c') [{}]

<NSXPCConnection: 0x7fc8e9457750> connection from pid 2127 on mach service named com.apple.coreduetd.context

and

<NSXPCConnection: 0x7fabd7513060> connection to service with pid 241 named com.apple.softwareupdated: Exception caught during invocation of reply block to message 'availableUpdatesOfType:withState:filteredByState:filterDeferred:filterDuplicates:reply:'.

Exception: -[__NSDictionaryM _getCString:maxLength:encoding:]: unrecognized selector sent to instance 0x7fabd7544610
(
	0  CoreFoundation           0x00007ff80ec04a6b __exceptionPreprocess + 242
	1  libobjc.A.dylib           0x00007ff80e969b9d objc_exception_throw + 48
	2  CoreFoundation           0x00007ff80ec8948b -[NSObject(NSObject) __retain_OA] + 0
	3  CoreFoundation           0x00007ff80eb6bc59 ___forwarding___ + 1406
	4  CoreFoundation           0x00007ff80eb6b648 _CF_forwarding_prep_0 + 120
	5  CoreFoundation           0x00007ff80eb11670 CFStringGetCString + 444
	6  LaunchServices           0x00007ff80f0274d2 _LSGetVersionFromString + 80
	7  SoftwareUpdate           0x00007ff81d1c0ffb +[SUUtilities trimMinorFromVersion:] + 38
	8  OSUpdate              0x00007ff914293204 __66-[SUOSUUpdateController availableLegacyUpdatesFilterMajorUpdates:]_block_invoke + 883
	9  CoreFoundation           0x00007ff80eb6d11c __invoking___ + 140
	10 CoreFoundation           0x00007ff80eb6cfb5 -[NSInvocation invoke] + 305
	11 Foundation             0x00007ff80f9a6074 __NSXPCCONNECTION_IS_CALLING_OUT_TO_REPLY_BLOCK__ + 17
	12 Foundation             0x00007ff80f9a3c11 -[NSXPCConnection _decodeAndInvokeReplyBlockWithEvent:sequence:replyInfo:] + 653
	13 Foundation             0x00007ff80f9a3532 __88-[NSXPCConnection _sendInvocation:orArguments:count:methodSignature:selector:withProxy:]_block_invoke_3 + 205
	14 Foundation             0x00007ff80f9a152a -[NSXPCConnection _sendInvocation:orArguments:count:methodSignature:selector:withProxy:] + 3207
	15 Foundation             0x00007ff80f9a0894 -[NSXPCConnection _sendInvocation:withProxy:] + 91
	16 CoreFoundation           0x00007ff80eb6b9a8 ___forwarding___ + 717
	17 CoreFoundation           0x00007ff80eb6b648 _CF_forwarding_prep_0 + 120
	18 OSUpdate              0x00007ff914292e4e -[SUOSUUpdateController availableLegacyUpdatesFilterMajorUpdates:] + 199
	19 OSUpdate              0x00007ff9142b8754 -[SUOSUMDMController availableUpdatesUsingAppleSoftwareLookupJson:WithError:] + 192
	20 OSUpdate              0x00007ff9142b85a2 -[SUOSUMDMController availableUpdatesWithError:] + 42
	21 mdmclient              0x000000010a491f16 mdmclient + 360214
	22 mdmclient              0x000000010a4605cd mdmclient + 157133
	23 mdmclient              0x000000010a45cb4f mdmclient + 142159
	24 mdmclient              0x000000010a4aceea mdmclient + 470762
	25 mdmclient              0x000000010a48f0fb mdmclient + 348411
	26 Foundation             0x00007ff80f9c69b2 __NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__ + 7
	27 Foundation             0x00007ff80f9c68aa -[NSBlockOperation main] + 98
	28 Foundation             0x00007ff80f9c6841 __NSOPERATION_IS_INVOKING_MAIN__ + 17
	29 Foundation             0x00007ff80f9c5aaf -[NSOperation start] + 785
	30 Foundation             0x00007ff80f9c5785 __NSOPERATIONQUEUE_IS_STARTING_AN_OPERATION__ + 17
	31 Foundation             0x00007ff80f9c565a __NSOQSchedule_f + 182
	32 libdispatch.dylib          0x00007ff80e91d202 _dispatch_block_async_invoke2 + 83
	33 libdispatch.dylib          0x00007ff80e910480 _dispatch_client_callout + 8
	34 libdispatch.dylib          0x00007ff80e912e86 _dispatch_continuation_pop + 452
	35 libdispatch.dylib          0x00007ff80e91253d _dispatch_async_redirect_invoke + 708
	36 libdispatch.dylib          0x00007ff80e91f889 _dispatch_root_queue_drain + 335
	37 libdispatch.dylib          0x00007ff80e920017 _dispatch_worker_thread2 + 160
	38 libsystem_pthread.dylib       0x00007ff80eabd0dc _pthread_wqthread + 256
	39 libsystem_pthread.dylib       0x00007ff80eabc0af start_wqthread + 15
)

sysdiagnose is attached to FB9540569

Monterey Beta 4 MDM Software Updates Query Failing
 
 
Q