"gwmi : Could not get objects from namespace root\default. Access denied"
This issue occurs when the rights do not flow down if assigned at the root level, it is complaining that the credential or group does not have access to root/default
-On the Start menu, click Run and type wmimgmt.msc
-In the WMI Control pane, right-click WMI Control, choose Properties, and then select the Security tab.
-Navigate to the namespace root/default, click Security, and then configure groups and permissions for the namespace. We would need read permissions at the root/default level.