Thanks to all for your suggestions! R -----Original Message----- From: thin-bounce@xxxxxxxxxxxxx [mailto:thin-bounce@xxxxxxxxxxxxx] On Behalf Of Braebaum, Neil Sent: Thursday, January 15, 2004 3:59 AM To: thin@xxxxxxxxxxxxx Subject: [THIN] Re: OT: populate AD user info The slick thing to do, would be write a HTA - you could even use the Microsoft script encoder to encode the scripting within it, to hide it from amateur, prying eyes - which would be a (effectively) GUI front end, just prompting the user themselves for this info - since users normally have the individual permissions (self) to update their user object. Much of the vbscript / ADSI stuff would be the same to a stand alone script - the advantage being you could have the users do these fields (and only these fields) from a GUI front end, and be able to complete / update these things, themselves. Doing it via HTA alleviates some of the trickiness of authentication issues that may blight / complex the issue, were you to do this by a more rather traditional web / ASP type application. Neil (PS: if you want any tips or info on how to do this sort of thing by HTA, then holler up - I'm reasonably sure it wouldn't be totally off-topic, here) > -----Original Message----- > From: Roger Riggins [mailto:roger.riggins@xxxxxxxxxx] > Sent: 14 January 2004 22:23 > To: thin@xxxxxxxxxxxxx > Subject: [THIN] Re: OT: populate AD user info > > Thanks. I was envisioning IT sending a form to all staff to > fill out and send back and then use a script similar to this > to parse the files and enter that info into their existing > accounts. Sound feasible? > > -----Original Message----- > From: thin-bounce@xxxxxxxxxxxxx > [mailto:thin-bounce@xxxxxxxxxxxxx] On Behalf Of Paul DeHaan > Sent: Wednesday, January 14, 2004 4:12 PM > To: thin@xxxxxxxxxxxxx > Subject: [THIN] Re: OT: populate AD user info > > Nothing like a slick vbscript using a little adsi! If you're > not into scripting... good luck and start with > cwashington.netreach.net. Here's a sample of how you would > create a user and add info to a few fields. You'll have to > look around to figure out the other field names I don't list. > The code might wrap. > > 'On error resume next > Set ou = GetObject("LDAP://OU=Users,OU=,dc=ms,dc=com";) > Set usr = ou.Create("user", "CN=jSmith") > > '--- Mandatory Attributes---- > usr.Put "samAccountName", "jsmith" > > '---- Optional Attributes, you can optionally skip these---- > > usr.Put "sn", "Smith - SN" > usr.Put "givenName", "John - given" > usr.Put "displayname", "John Smith - display" > usr.Put "name", "jsmith" > usr.Put "description", "Charlotte - description 1" > usr.Put "userPrincipalName", "jsmith@xxxxxx" > usr.Put "physicalDeliveryOfficeName", "Charlotte" > usr.Put "title", "Test account - Paul D." > usr.Put "homedirectory", "\\rober\script\jsmith" > usr.Put "homedrive", "H:" > usr.Put "scriptpath", "slogon.bat" > usr.SetInfo > > '--Now that the user is created, reset the user's password > and '--enable its account > > usr.SetPassword "secret***!" > usr.AccountDisabled = True > usr.SetInfo > > Have fun! > > >>> roger.riggins@xxxxxxxxxx 01/14/04 03:08PM >>> > Anybody know of a way to get user info (name, job title, > phone numbers, > etc.) entered into AD other than us manually entering the stuff? *********************************************** This e-mail and its attachments are confidential and are intended for the above named recipient only. If this has come to you in error, please notify the sender immediately and delete this e-mail from your system. You must take no action based on this, nor must you copy or disclose it or any part of its contents to any person or organisation. Statements and opinions contained in this email may not necessarily represent those of Littlewoods. Please note that e-mail communications may be monitored. The registered office of Littlewoods Limited and its subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB. Registered number of Littlewoods Limited is 262152. ************************************************ ******************************************************** This Week's Sponsor - RTO Software / TScale What's keeping you from getting more from your terminal servers? Did you know, in most cases, CPU Utilization IS NOT the single biggest constraint to scaling up?! Get this free white paper to understand the real constraints & how to overcome them. SAVE MONEY by scaling-up rather than buying more servers. http://www.rtosoft.com/Enter.asp?ID=147 ********************************************************* Useful Thin Client Computing Links are available at: http://thethin.net/links.cfm *********************************************************** For Archives, to Unsubscribe, Subscribe or set Digest or Vacation mode use the below link: http://thethin.net/citrixlist.cfm Notice of Confidentiality: This e-mail and any attachments may contain privileged and/or confidential information. This e-mail is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient of this e-mail, you are hereby notified that any copying, distribution, dissemination or action taken in relation to the contents of this e-mail and any of its attachments is strictly prohibited and may be unlawful. If you have received this e-mail in error, please notify the sender immediately and permanently delete the original e-mail and destroy any copies or printouts of this e-mail as well as any attachments. Please note Lutheran Services in Iowa does not endorse any opinions, conclusions or other information contained within this message that does not pertain to official business. ******************************************************** This Week's Sponsor - RTO Software / TScale What's keeping you from getting more from your terminal servers? Did you know, in most cases, CPU Utilization IS NOT the single biggest constraint to scaling up?! Get this free white paper to understand the real constraints & how to overcome them. SAVE MONEY by scaling-up rather than buying more servers. http://www.rtosoft.com/Enter.asp?ID=147 ********************************************************* Useful Thin Client Computing Links are available at: http://thethin.net/links.cfm *********************************************************** For Archives, to Unsubscribe, Subscribe or set Digest or Vacation mode use the below link: http://thethin.net/citrixlist.cfm