Sounds like the calling process doesn't have the correct Authentication-Level
https://learn.microsoft.com/en-us/windows/win32/wmisdk/securing-a-remote-wmi-connection
https://learn.microsoft.com/en-us/windows/win32/rpc/authentication-level-constants
--please don't forget to upvote
and Accept as answer
if the reply is helpful--