SoftwareTipsandTricks Forum

Go Back   SoftwareTipsandTricks Forum > Operating Systems > Windows NT/2000/2003
User Name
Password


VBscript & Active Directory

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes

  #1  
Old 11-19-2002, 12:42 PM
ecraig Offline
Junior Member
 
Join Date: Oct 2002
Posts: 4
VBscript & Active Directory

I have got the following script:

Set oContainer = GetObject("LDAP://OU=junior,OU=PHS

Students,DC=harvester,DC=pampaisd,DC=net")

ModifyUsers oContainer

'cleanup

Set oContainer = Nothing

WScript.Echo "Finished"

Sub ModifyUsers(oObject)

Dim oUser

oObject.Filter = Array("user")

For Each oUser in oObject

oUser.Put "scriptPath","student.bat"

oUser.Put "homeDrive","X"

oUser.Put "homeDirectory","\\phslib\%username%"

oUser.SetInfo

Next

End Sub

I need to have the homeDirectory line place the username after "\\phslib\USERNAME HERE??". What do I need to add to this script in order to accomplish this. I am fairly new to VB Scripting so I don't alot of the command. Thank you.
Reply With Quote

  #2  
Old 12-30-2002, 05:28 AM
DA Master's Avatar
DA Master Offline
Net Punk
 
Join Date: Oct 2002
Location: Planet Zorg
Posts: 141
Send a message via Yahoo to DA Master
Try these links:

Snippet Library
TutorGig
VB Bookmark
VB Tutorials
Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
W2K Active Directory Problem scraigc Windows NT/2000/2003 1 01-20-2005 03:39 PM
can't delete directory gargar Windows XP 3 12-26-2004 12:24 PM
Issues with SP2 and active HTML desktop madcat75 Windows XP 2 05-26-2004 04:09 AM
Active Directory, full control GRainer Software Problems and Useful Utilities 0 03-06-2004 07:27 AM
Active Directory with Router AdeptDeveloper Windows NT/2000/2003 1 12-31-2002 05:51 AM



All times are GMT -5. The time now is 01:45 PM.


Designed by eXtremepixels. Powered by vBulletin Version 3.5.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 2.3.2 © 2005, Crawlability, Inc.