Expand|Select|Wrap|Line Numbers
- import wmi
- c = wmi.WMI(computer="10.1.1.1", user="name", password="pass")
- for host in c.Win32_ComputerSystem():
- ...... and so on
Expand|Select|Wrap|Line Numbers
- File "C:\Python25\Script1.py", line 2, in ?
- c = wmi.WMI(computer="10.1.1.1", user="name", password="pass")
- File "C:\Python24\lib\site-packages\wmi.py", line 1011, in connect
- handle_com_error (error_info)
- File "C:\Python24\lib\site-packages\wmi.py", line 160, in handle_com_error
- raise x_wmi, "\n".join (exception_string)
- x_wmi: -0x7ff8fffb - Отказано в доступе. (some troubles with encoding)