Monday, March 23, 2009

Software List on Domain Computers VB Script

select cn, mail, distinguishedname, displayname, samaccountname FROM OPENROWSET('ADSDSOObject',
'adsdatasource;', 'SELECT cn, mail, distinguishedName, displayName, samaccountname
FROM ''LDAP://company.com'' where objectClass = ''User'' and objectCategory=''Person'' ')

No comments:

Post a Comment

 
span.fullpost {display:inline;}