I am investgating how to retrive O/S username information using powerbuider coding, find this from the net:
OleObject ads
ads = CREATE OleObject
ads.ConnectToNewObject( "ADSystemInfo" )
// CN=Doe\,Joe,OU=something,OU=somewhere,DC=bigbuilding,DC = local
MessageBox("Active Directory -...