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.
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.