I am running a Windows container created from base image python2.7.18-windowsservercore. But when using the wmi module from python on container, was unable to connect to any remote system from the container. It simply fails with access denied error even though the right credentials were used

Tested the same from another normal windows host to remote machine which is working fine. Any suggestions for config changes on container or where am I doing wrong.
I am running container on Win2019 server