I’m getting NT_STATUS_CONNECTION_REFUSED
This is unlikely to be a plugin problem. If you run wmic directly from the command line do you get the same result? Probably.
It typically means that the WMI connection you are trying to make is being rejected, either by the Windows box or perhaps a firewall in-between. Often firewalls simply drop packets and so you may just get a timeout instead of the rejection message.
Sébastien Maury reports that the following ports are required to ensure successful WMI access:
Nagios –> Windows : 135 (TCP) – RPC
Nagios –> Windows : 49125 to 65535 (UDP/TCP) – RPC