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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

yo_beeDirector of Information TechnologyCommented:
0
DRRAMAuthor Commented:
Yes but I need vbsscript not powershell
0
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
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

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
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
VB Script

From novice to tech pro — start learning today.