I'm trying to import Pyad and get the active user directory when i'm shown this error:
Traceback (most recent call last):
File ".\test.py", line 9, in
q.execute_query(
File "C:\Users\VIMOHA\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pyad\adquery.py", line 78, in execute_query
self.rs, self.rc = command.Execute()
File "", line 2, in Execute
File "C:\Users\VIMOHA\AppData\Local\Programs\Python\Python38-32\lib\site-packages\win32com\client\dynamic.py", line 287, in ApplyTypes
result = self.oleobj.InvokeTypes(*(dispid, LCID, wFlags, retType, argTypes) + args)
pywintypes.com_error: (-2147352567, 'Exception occurred.', (0, 'Active Directory', 'There is no such object on the server.\r\n', None, 0, -2147217865), None)
Is there a workaround to solve this issue. Thanks.
I'm trying to import Pyad and get the active user directory when i'm shown this error:
Is there a workaround to solve this issue. Thanks.