Free Power Tools Brochure
Get Mark Minasi's
17-page guide today!



      

advertisement

Get Newsletters

  • Get the Latest News
  • Product Updates
  • Helpful Tricks
  • Productivity Tips

Subscribe Now!

August 01, 2000 01:51 PM

Easy Active Directory Scripting for Systems Administrators, Part 1

Rating: (0)
Windows IT Pro
InstantDoc ID #9168
Core Active Directory Service Interfaces let you perform most of your AD management tasks
Many Windows 2000 and Windows NT systems administrators find that developing custom scripts to manage their infrastructure is a radical departure from using traditional graphical toolsets. If you agree, you might be reluctant to learn Windows Script (WS) and supporting technologies such as Active Directory Service Interfaces (ADSI). Although you don't need to write custom scripts t...

ARTICLE TOOLS

You must be a paid Professional Member to access this entire article.

Already a Professional Member? Please log in now:

NOT A PROFESSIONAL MEMBER? YOU CHOOSE:

Monthly or Annual

Professional Membership

VIP Membership

Compare Member Benefits

Add a Comment

I´m interested in the John Eck´s HTML form, can u show me? email:soyelputoamo5@hotmail.com

Anonymous User 4/26/2005 2:56:17 AM


I´m looking to do one ASP page to manipulate AD, this scripts are very fun, but i don´t know how i use it on my page. Can u help me? email: hectorbs@supercable.es

Anonymous User 4/26/2005 2:54:43 AM


i stumbled upon this tutorial while trying to look up a way to screate a script to pull workstation names from a .xls, bind to an OU i need to move them to, and then move those workstations to that OU. Does anyone have any pointers that could shove me in the right direction? email: SamuraiKen@gmail.com

Anonymous User 2/1/2005 11:20:16 PM


Is this a vb(.net) form code? Just want to know but the link is dead...

Anonymous User 1/11/2005 9:40:09 AM


In response to John Eck's question:

You can use a simple string concatenation to include a variable when using the Create method to create an AD user object.

For example, with strUser as my variable:

Set oUser = oOU.Create("user", "cn=" & strUser)

Joshua McConnaughey 4/29/2003 9:34:46 AM


The article was very good. I created a form in an html page and posted variables to an asp page with the script and all works except for on piece. In the line:
Set oUser = oOU.Create("User", "cn=Judy Schneider")
I can't figure out how to make it work with a variable for
Dim strUser
strUser = "Judy Schneider"
Set oUser = oOU.Create("User", "cn=strUser")
If anyone has any ideas I would greatly appreciate it.

John Eck 8/11/2002 11:58:30 AM


Thanks for the excellent article on ADSI. I look forward to part II. I take a lot of the examples I have seen in articles like this one and move them into a web interface w/ASP, VBScript and JavaScript. WSH is nice but when a lot of parameters are needed for a complex script, I find it simpler to show a web page to the user. Also, web form validation brings a level of consistency and convenience that is difficult to replicate with cscript.

Ethan Wilansky 9/1/2000 3:37:48 PM


You must log on before posting a comment.

Are you a new visitor? Register Here

VB Script to enable user account

Do any of you guys have a VB script that could be used to enable a AD user account? We are setting up a "firecall" ID which will stay disabled until i...222-96219

advertisement

GOOGLE LINKS
SPONSORED LINKS
FEATURED LINKS

Podcasts

To successfully implement virtual desktops, IT administrators must carefully match user requirements to specific desktop technologies. Listen to this podcast to learn what you need to keep in mind when formulating your approach to desktop virtualization.

Downloads

PacketTrap IT is a comprehensive and affordable network management and application monitoring solution that solves problems associated with bandwidth, network and application performance, and connectivity. Gain insight into your network - try PacketTrapIT free for 21 days!

Web Seminars

Aside from its employees, data is an organization’s most important resource. Join Windows technical specialist and 11-time MVP John Savill to learn the best practices for managing data using features in Windows Server.
View this web seminar on demand!

eLearning Series

We bring the experts direct to you to share their real-world perspective and expertise. During each event, three sessions stream in real time, so you can learn, ask questions, and get solutions.
Upcoming event: Getting the Most with Exchange 2010 with Paul Robichaux

Subscribe to Windows IT Pro!

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.