469,133 Members | 998 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,133 developers. It's quick & easy.

cant' connect to remote machine using wmi [solved]

2
os winxp

Expand|Select|Wrap|Line Numbers
  1. import wmi
  2. c = wmi.WMI(computer="10.1.1.1", user="name", password="pass")
  3.  
  4. for host in c.Win32_ComputerSystem():
  5. ...... and so on
  6.  
error in c = wmi.WMI(computer="10.1.1.1", user="name", password="pass")

Expand|Select|Wrap|Line Numbers
  1.   File "C:\Python25\Script1.py", line 2, in ?
  2.     c = wmi.WMI(computer="10.1.1.1", user="name", password="pass")
  3.   File "C:\Python24\lib\site-packages\wmi.py", line 1011, in connect
  4.     handle_com_error (error_info)
  5.   File "C:\Python24\lib\site-packages\wmi.py", line 160, in handle_com_error
  6.     raise x_wmi, "\n".join (exception_string)
  7. x_wmi: -0x7ff8fffb - Отказано в доступе.  (some troubles with encoding)
  8.  
on the local machine all works perfectly
Oct 31 '06 #1
3 7236
bartonc
6,596 Expert 4TB
Very cool... Where did you find the wmi module?
have you tried u"username", etc?
Oct 31 '06 #2
spens
2
Solved. User on remote machine were not in group Administrators.
Nov 1 '06 #3
bartonc
6,596 Expert 4TB
Very cool... Where did you find the wmi module?
have you tried u"username", etc?
http://timgolden.me.uk/python/wmi.html
Nov 1 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Steven | last post: by
reply views Thread by =?Utf-8?B?Q2hpV2hpdGVTb3g=?= | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
1 post views Thread by Mortomer39 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.