Jul-31-2021, 02:05 AM
Happy Friday!
I think I managed to install "WMI" module.
When I use:
Script:
Thank you.
I think I managed to install "WMI" module.
When I use:
import wmiMy script does not error out. The remote host is online, I used the admin username and pass.
Script:
try: connection = wmi.WMI('245.234.44.56', user="Some_User", password="password") print("connection is established") except: print("connection failed")
Output:pywintypes.com_error: (-2147352567, 'Exception occurred.', (0, 'SWbemLocator', 'Access is denied. ', None, 0, -2147024891), None)
I'm wondering if Python has everything installed to make the connection...Thank you.