Tuesday, November 25, 2008

Configuring User Profile Properties for a User Account

Configures user profile properties for the MyerKen Active Directory user account.

Set objUser = GetObject _
    ("LDAP://cn=Myerken,ou=Management,dc=NA,dc=fabrikam,dc=com")
 
objUser.Put "profilePath", "\\sea-dc-01\Profiles\myerken"
objUser.Put "scriptPath", "logon.bat"
objUser.Put "homeDirectory", "\\sea-dc-01\HomeFolders\myerken"
objUser.Put "homeDrive", "H"
 
objUser.SetInfo

This is a VB Script, this can be used by saving the file in .vbs file