Active directory Attribute

Hi,

Please I need a script "vbscript" to export the following attribute from two "OU" in active directory,
After to run the script we obtein a output file .csv (encode in UTF-8 )

I want to display in the output file the following fields:
"Account","Disabled","First Name","Last Name","Mail"

*Disable = True or False
"""ou=Accounts,ou=Sales,ou=USA,dc=Dom,dc=local"",""DC1Serv.dom.local"""
"""ou=Accounts,ou=Marketing,ou=USA,dc=Dom,dc=local"",""DC1Serv.dom.local"""

Best regards,
DRRAMAsked:
Who is Participating?
 
yo_beeDirector of Information TechnologyCommented:
Here is a link to a complete VBS to export via VBS. http://www.morgantechspace.com/2014/03/Export-Active-Directory-users-into-CSV-file-in-VBScript.html#ExportADUsersFromOU.   You will have to substitute the attributes you want.  As you can see the VBS method is much more complex and it is something that would take me to long to rework.
0
 
yo_beeDirector of Information TechnologyCommented:
0
 
DRRAMAuthor Commented:
Yes but I need vbsscript not powershell
0
Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

 
yo_beeDirector of Information TechnologyCommented:
That is not what you stated in your original question.  You stated you needed either or


Please I need a script (vbscript or Powershell)  to export the following attribute from two "OU" in active directory,
After to run the script we obtein a output file .csv (encode in UTF-8 )
0
 
DRRAMAuthor Commented:
It is another question and I open another call
ok
0
 
yo_beeDirector of Information TechnologyCommented:
It is the exact same questions, but not asking for the Powershell.  
For this request are you not able to run Powershell?
If VBS or PS can be used for this request PS is way cleaner and easier to get these values.
0
 
DRRAMAuthor Commented:
thx
0
 
yo_beeDirector of Information TechnologyCommented:
Where you able to find what you needed from that link I posted?
0
 
DRRAMAuthor Commented:
Thanks. I found the post useful.
0
 
yo_beeDirector of Information TechnologyCommented:
Happy to hear that, but I feel that PS is the way to go to get the same results with much more ease.
0
 
DRRAMAuthor Commented:
Yes  :-)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.