Jul-31-2021, 02:05 AM
Happy Friday!
I think I managed to install "WMI" module.
When I use:
My script does not error out. The remote host is online, I used the admin username and pass.
Script:
Thank you.
I think I managed to install "WMI" module.
When I use:
1 |
import wmi |
Script:
1 2 3 4 5 |
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.