What I want to do:
Change the profile path and the home folder path for a specific OU with a vbs script.
Here is a script I`ve found that maybe can be used:
Set objOU = GetObject _
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"
When I run this script from a domain controller I get this error error:
Error: A referral was returned from the server
Anyone that knows what is wrong?
Eventually got a better/easier script for the task I want to perform?