Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Moving mandatory TS profiles

Status
Not open for further replies.

tamray

IS-IT--Management
Feb 8, 2005
43
US
We use mandatory TS profiles that point to a read only share on a server. In user properties it is entered as \\jaguarpdc\users\tsprofile.man. We are replacing the server and need to move it to \\jaguar6\users\tsprofile.man. Unfortunately I cannot just right click on all 1200 users and change this, like you can for "profiles". Is there an easy way to make this change without messing with each individual user account?


 
Use a GPO for it...unfortunately you're stuck with having to manually remove the 1200 references you already have...might be able to script it. Someone will probably hop on with a scripting option.

I'm Certifiable, not cert-ified.
It just means my answers are from experience, not a book.
 
I took a stab at a gpo before I made this post, hoping it would override what was already in the user account properties. Didn't really think it would work, and it didn't. Hopefully someone has a way of automating the change, or at least a way to remove what is there, so I can set the gpo to the proper path.
 
There is a script for doing what you are looking for:

Code:
Set objUser = GetObject _
    ("LDAP://cn=MyerKen,ou=Management,dc=NA,dc=fabrikam,dc=com")
 
strCurrentProfilePath = objUser.Get("profilePath")
intStringLen = Len(strCurrentProfilePath)
intStringRemains = intStringLen - 11
strRemains = Mid(strCurrentProfilePath, 12, intStringRemains)
strNewProfilePath = "\\fabrikam" & strRemains
objUser.Put "profilePath", strNewProfilePath
objUser.SetInfo

The "snippet" of the code:

Changes the server name portion of the user profile path to \\fabrikam for the MyerKen Active Directory user account.

I know Markdmac has done something like this not too long ago in which he parsed an excel file with the names to be used. I can't seem to find it right now, but if he's listening....Mark?
 
This is only a partial vb script, right? Where can I find the whole script with some pointers what to change.
 
Correction:

I found the servers were not propagating properly. After I resolved that issue, the TS roaming profiles set via a GPO started working, over riding what was set in the user properties (perfect). I have redirected the start menu to \\jaguar6\tsprofile.man. This works, but I would like to keep "All users" from C:\documents and settings" from showing up, so only the menu items I place in the redirected start menu show up.

Any ideas how to do this?
 
I found the perfect tool!!

Admodify.exe

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top