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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Anyone know of a script that changes users home folder?

Status
Not open for further replies.

Raziel014

Technical User
Nov 1, 2005
51
NO
Hi! I'm in the need of a visual basic script that edits the users profile and changes the home folder entry to something else. We're installing a new fileserver and don't want to this manually.

The old server is called "terminal" and the new one is called "ringve-fil".

The currently paths is:

\\terminal\ansatt\%username%
\\terminal\elev\%username%

This need to be changed to:

\\ringve-fil\ansatt\%username%
\\ringve-fil\elev\%username%

Can anyone help me with this?
 
Are you familiar with the Windows 32 Registry? These values are stored there, a VB script could be written to change them, but unless you really know what you are doing I wouldnt recommend it.

 
Hmm, yes I'm quite familiar with the registry, but don't want to send a script off doing lots of things if there will be errors! But does this mean that I can just search the registry and replace these entries?
 
Are you sure that the home directory is stored in the registry and not mapped by Active Directory at login?
 
How can I find out this? I haven't done anything like this in any loginscript at all.
 
You have probably realised by now that this is the VB6 forum, NOT VBscript. VBScript = forum329

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Drive a Steam Roller
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top