[python-win32] getting TerminalServicesProfilePath

Etienne Pouliot etiennepouliot at gmail.com
Tue Sep 9 17:13:27 CEST 2008


Hi,

  I'm trying to get TerminalServicesProfilePath property on user account in
my Active Directory.

adsi = win32com.client.Dispatch('ADsNameSpaces')
ldap = adsi.getobject("","LDAP:")
logon_ex='cn=Admin,dc=.....'
password='mypassword'
ex_path="LDAP://myserver/cn=test123,..."
obj = ldap.OpenDSObject(ex_path,logon_ex,password,0)
obj.Getinfo()

Then I tryed with :
print obj.TerminalServicesProfilePath
or
obj.get('TerminalServicesProfilePath')

None worked

If I use another properties instead, like DisplayName, it works.

Any idea what I am doing wrong ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20080909/2019a574/attachment.htm>


More information about the python-win32 mailing list