Hi,
It sounds like you’re encountering issues with the Get-WMIObject
command in SCCM. Here are a few steps you can take to troubleshoot:
Check Permissions: Ensure that the account running the command has the necessary permissions to access WMI on the remote server.
Verify Namespace and Class: Double-check that the namespace root\sms\site_$Site_Code
and the class SMS_SUMDeploymentAssetDetails
are correct and exist on the target server.
Network Connectivity: Make sure there are no network issues between your machine and the SCCM server. You can use Test-Connection
to verify connectivity.
WMI Service: Ensure that the WMI service is running on the SCCM server. You can restart the service if necessary.