Hi,
Please refer to the subject, How can I get the same from Windows Server 2012 active Directory.
I am using Mr.Mike Gagnon's code which is giving me the details of the users.
In addition to that kindly let me know how to include group name in the above mentioned code?
Thanks
Saif
Please refer to the subject, How can I get the same from Windows Server 2012 active Directory.
I am using Mr.Mike Gagnon's code which is giving me the details of the users.
Code:
strDomain = "STG"
Clear
On Error
Public PrimDomainContr
Create Cursor names (username c(30),;
fullname c(80),;
description c(80),;
Class c(50),;
accdisable l,;
acclocked l,;
profile c(30),;
loginscript c(50),;
Homedir c(30))
PrimDomainContr = Getobject("WinNT://" + strDomain)
For Each User In PrimDomainContr
If User.Class = 'User'
Insert Into names (username,fullname,description,Class,accdisable,acclocked,profile,;
loginscript,Homedir) Values (User.Name,user.fullname,User.description,User.Class,User.AccountDisabled,;
User.IsAccountLocked,User.Profile,User.loginscript,User.Homedirectory)
Endif
Next
Browse Norm
In addition to that kindly let me know how to include group name in the above mentioned code?
Thanks
Saif