×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Create NT accounts, directories etc from PERL?

Create NT accounts, directories etc from PERL?

Create NT accounts, directories etc from PERL?

(OP)
I know that it can be done, but the question from the lazy sysadmin is, Has anyone here done it? If you have would you be willing to share the script?
I have some bits and pieces, but not the whole ball of wax.

Thanks!!

RE: Create NT accounts, directories etc from PERL?

I that you would find it an over all rewarding experience to visit
http://www.worldwidemart.com/scripts/. You should find what you're looking for here. If that doesn't work, then try fishing around in your internet service provider's ftp directories. Look for a directory called, "VAR," then from there go to "WWW" then from there go to "cgi-bin." This is the gold mine. If you don't find the files you were hoping to find, then keep fishing around, the files you need may not be in use and will be stored in a different directory. They are characterized by a ".pl" at the end of their name.

RE: Create NT accounts, directories etc from PERL?

(OP)
Sorry, there's nothing there even like that, I've been there, and it's mostly CGI stuff.

Believe me, I've done a good bit of fishing around! Thanks anyways.

RE: Create NT accounts, directories etc from PERL?

Well, one quick suggestion and my Perl expertise (almost nothing) is pretty well exhausted:
I've seen MANY free website hosts that allow you to create new directory" from within their editors. You can find one of these services, copy the URL ending in .CGI or .pl (before the string that wtarts with ?), then use a downloading program to download their CGI script which you can then find the necessary part of, clip it out, then add it to your script.

Please let me know if you're having trouble, I'll look for such a file for you to get you started.

-Robherc

RE: Create NT accounts, directories etc from PERL?

I don't know NT so I don't know if it helps at all, but you might be able to do it with the system() function. With the thousands of modules, there's probably one hidden away on CPAN that can do this alot easier. www.perl.com/CPAN

RE: Create NT accounts, directories etc from PERL?

In the Win32 modules for Perl there is a module Win32::NetAdmin that lets you do all sorts of net administration from within Perl.

I use the ActiveState port of Perl (or perl of Ports?:)
which comes with Win32. It is available at
http://www.activestate.com

Hope this helps,
Tim

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close