Jump to content
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble

MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, register and become a site sponsor/subscriber and ads will be disabled automatically. 


  • Content count

  • Donations

  • Joined

  • Last visited

Community Reputation

0 Neutral

About swinomish

  1. you can always try looking at my script for ideas http://www.msfn.org/board/New-User-HTA-Form-t120592.html
  2. Here is something I have been working on for awhile, it can be found else where here in a different thread. The other New user HTA is quite different from mine. So.. I am starting a new thread.. There are six fields in the form, three are text boxes, three are Drop down lists. This script combines username, First & last Names to create an account in AD, plus fill out quite a few fields in the AD schema. It also creates a home folder and assigns NTFS permissions to that folder. The script reads and stores three AD groups in the drop lists from AD.. then adds the the new user to those groups in AD. it also takes the Job title and Department name and fills in the AD schema fields. I finished the Create Exchange Mailbox section yesterday, It is based on One Storage Group & One Mailbox store. Exchange 2003 Enterprise SP2 has an almost unlimited capacity right now with 8000GB as the top end for a mailbox store. Any comments or suggestions are most welcome. Sam Attached file Updated on 05/11/09 to include SETACL Note: You will also need to download SETACL , and put it in your WINDOWS\SYSTEM32 folder to be able to create the home folder and assign NTFS permissions. http://setacl.sourceforge.net/ New_User_Script.zip
  3. Thanks , it works perfectly now... I don't know why I did not see that before.. just looking at it to long I guess
  4. I am looking for a little help regarding syntax using variables in an LDAP statement. Here is a piece of my code that works perfectly 'This section adds the new user to the Department Security Group Set objGroup = GetObject ("LDAP:// cn=Bingo,OU=NLC Departments,dc=nlc,dc=com") Set objUser = GetObject("LDAP:// cn=John Public,OU=NLC Users,dc=nlc,dc=com") objGroup.add(objUser.ADsPath) I have two variables that are captured in my form .. strDepartment & strUser that I am having problems inserting into the above LDAP statement in the CN field. The strDepartment Variable can be chosen from a drop down list that reads from my AD. There can be 12 choices, I used CN=Bingo as a test example, any of the other 11 work as well. When I try it like this I get object not found on server.. I have used the & symbol and Quotes “” in various spots but cannot seen to find the correct syntax. any ideas? 'This section adds the user to the Department Security Group Set objGroup = GetObject ("LDAP:// cn=strDepartment,OU=NLC Departments,dc=nlc,dc=com") Set objUser = GetObject("LDAP:// cn=strUser,OU=NLC Users,dc=nlc,dc=com") objGroup.add(objUser.ADsPath) Thanks Sam
  5. Add User Hta

    I created a new thread for my script at this link since my script is quite different then the script in this thread. http://www.msfn.org/board/New-User-HTA-Form-t120592.html