This fall I successfully created a script to set-up Active Directory
accounts for all the users in a school environment. I've made some changes
to the system which necessitates changing the terminal services profile path
for all the users. I'd like to write a script that will enable me to do so,
but I'm haveing a very difficult time finding the service to which I should
be binding to make the change. It seems that some of the ADSI items are
more common place while others require a strange kind of voodoo. Please
help with suggestions about how to do so.

Re: ADSI-Changing Terminal Server Profile Settings by Don

Don
Mon Nov 13 19:04:23 CST 2006

vTerminalServicesProfilePath = "\\share01\" & compname & "\" & sUserID
vTerminalServicesHomeDirectory = "\\share01\" & compname & "\" & sUserID
vTerminalServicesHomeDrive = "H:"
sTargetOU = <full string to the OU container> ex sTargetOU = "ou=" &
CompName & ",ou=ASP,ou=clients,ou=mydomain,dc=com


Set objTargetOU = GetObject("LDAP://" & sTargetOU)
objUser.TerminalServicesProfilePath = vTerminalServicesProfilePath
objUser.TerminalServicesHomeDirectory = vTerminalServicesHomeDirectory
objUser.TerminalServicesHomeDrive = vTerminalServicesHomeDrive
objUser.SetInfo

--
--------
Hope It Helps!

dw
_______________________________
Don Wilwol
Distributed Application Technologies.
dwilwol(DELETE)@datbusiness.com
www.AtTheDataCenter.com (personal website)
www.skysphere.com (hosting available)


"KWME" <webmaster@mciblues.net> wrote in message
news:u1Egx8pBHHA.992@TK2MSFTNGP03.phx.gbl...
> This fall I successfully created a script to set-up Active Directory
> accounts for all the users in a school environment. I've made some
> changes to the system which necessitates changing the terminal services
> profile path for all the users. I'd like to write a script that will
> enable me to do so, but I'm haveing a very difficult time finding the
> service to which I should be binding to make the change. It seems that
> some of the ADSI items are more common place while others require a
> strange kind of voodoo. Please help with suggestions about how to do so.
>