Hi. Thank you for your question and reaching out. I’d be more than happy to help you with your query
The code you are referring to is a part of the Hyper-V virtualization sample. The missing "Utility" class is likely a utility class provided by Microsoft that's used in the sample to simplify the WMI usage. You can download the full sample from the Microsoft website:
https://docs.microsoft.com/en-us/windows/win32/hyperv_v2/virtualization-samples-v2
Alternatively, you can create your own implementation of the utility class based on the WMI classes required for your application. To access the WMI objects and classes, you need to add a reference to the "Microsoft WMI Code Creator" in your .Net project. The "ExportSystemDefinition" method is part of the "Msvm_VirtualSystemManagementService" WMI class. You can access this class using the WMI management API in your .Net application.
If the reply was helpful, please don’t forget to upvote or accept as answer, thank you.