-
-
Notifications
You must be signed in to change notification settings - Fork 10
Cannot query MSCluster namespaces #38
Description
I have been trying to make a script to query MSCluster properties like Active node, cluster Disk usage and others.
Every time I would get WBEM_E_ACCESS_DENIED (2147749891) error, but I know that the account is configured properly. I have already test it and it works remotely with powershell and Impacket. Furthermore, I can't find any Windows Event log errors in Security or WMI-Activities.
I tryed using the example script with this query "SELECT Name FROM MSCluster_Cluster" from "root/mscluster".
This is the Traceback from it :
Traceback (most recent call last):
File "/home/support/./plugins/query_aiowmi_custom.py", line 93, in
asyncio.run(main())
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
return future.result()
File "/home/support/./plugins/query_aiowmi_custom.py", line 36, in main
async with query.context(conn, service) as qc:
File "/opt/python-virtualenv/aiowmi/lib/python3.10/site-packages/aiowmi/qcontext.py", line 53, in aenter
await self.start()
File "/opt/python-virtualenv/aiowmi/lib/python3.10/site-packages/aiowmi/qcontext.py", line 85, in start
message = rpc_response.get_message(self._proto)
File "/opt/python-virtualenv/aiowmi/lib/python3.10/site-packages/aiowmi/rpc/response.py", line 106, in get_message
raise wbem_exception(errcode)
aiowmi.exceptions.WbemExAccessDenied: WBEM_E_ACCESS_DENIED (2147749891)
I'm running this on Ubuntu 22 using virtualenv. I tested this against Windows Server 2016 Cluster.
Is there a way to set to always run Authentication Level as RPC_C_AUTHN_LEVEL_PKT_PRIVACY? I'm wondering if this could be the issues as it is required by the namespace "root/mscluster" .