 |
Forums |
Admin Discussion Forums: help Start New Thread
By: Lawrence Holcomb
New oddity [ reply ] 2007-07-19 19:01
|
I can get user info no problem now. However when I try to add a user to a group I get a Sys::AdminError raised at line 393.
When I try the code in the function in irb on it's own this is what happens.
adsi = WIN32OLE.connect("WinNT://TECHNO/ARDR_108,group")
=> #<WIN32OLE:0x2b879d0>
adsi.put("Add", "glen")
WIN32OLERuntimeError: put
OLE error code:8000500F in <Unknown>
<No Description>
HRESULT error code:0x80020009
Exception occurred.
from (irb):6:in 'method_missing'
I've tried several variations on the "username", from account name by it's self to domain name and account name but still get the same error. Any more ideas?
I've tried it on the 2003 machine that will eventually be running the code with the same results there, I thought it might be this machine given my last problem.
|
|
 |