It may be the WMI hasn't fully started

It may be User permission of the user.

I'm looking into making a inventory client that runs as a service to populate a file with the required data. Then any user can just read the data or the logon script can pull it
_________________________
How to ask questions the smart way <-----------> Before you ask