Share this page 

Get information for the current user from the ADSTag(s): WinAPI/Registry


OleObject ads

ads = CREATE OleObject
ads.ConnectToNewObject( "ADSystemInfo" )

// CN=Doe\,Joe,OU=something,OU=somewhere,DC=bigbuilding,DC=local
MessageBox( "", String( ads.UserName ) )