Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create NT accounts, directories etc from PERL?

Status
Not open for further replies.

kflanagan

MIS
Sep 12, 1998
10
US
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?<br>
I have some bits and pieces, but not the whole ball of wax.<br>
<br>
Thanks!!
 
I that you would find it an over all rewarding experience to visit <br>
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.
 
Sorry, there's nothing there even like that, I've been there, and it's mostly CGI stuff.<br>
<br>
Believe me, I've done a good bit of fishing around! Thanks anyways.<br>

 
Well, one quick suggestion and my Perl expertise (almost nothing) is pretty well exhausted:<br>
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.<br>
<br>
Please let me know if you're having trouble, I'll look for such a file for you to get you started.<br>
<br>
-Robherc
 
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.
 
In the Win32 modules for Perl there is a module Win32::NetAdmin that lets you do all sorts of net administration from within Perl.<br>
<br>
I use the ActiveState port of Perl (or perl of Ports?:)<br>
which comes with Win32. It is available at <br>
<br>
Hope this helps,<br>
Tim<br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top