How can I query Active Directory from SQL Server 2005?
Just a note; to remove the link use
exec sp_dropserver 'ADSI';