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

setting up mapped dfs drive

Status
Not open for further replies.

alpha88

MIS
Joined
Jan 1, 2004
Messages
90
Location
US
I would like to map a single drive letter to the root of our dfs. The problem is I have home folders on the dfs.I would like for a user folder inside the drive that I mapped to show that users intials and say home.Is this even possible. For example all data is mapped to z drive but inside z drive theres a folder for the user thats logged in lets say mdoe/home.
 
Are you using DFS replication? Is that why you want to use DFS? I guess your users move from site to site and that you have DFS servers in each site. When the user logs in, you want them to be redirected to the closest DFS share.

I've never tried it.

DFS is a product that has two main functions:

1) It is used to organize a large number of network shares (usually on multiple server) into a nice hierarchy.

2) It can be used to replicate READ ONLY data between DFS Server shares. This also plays nicely with Win2K and higher clients becuase they are "site aware" and will connect to the closest DFS replica (instead of spanning WAN links to access DFS shares).

It sounds like you are trying to implement DFS with Home drives. I've never tried it. You will need to put \\DfS FQDN\DFS Share\%username% under each users profile (for Home Drive). This might work....

You will have h: = \\DFS_FQDN\DFS_SHARE\%username%

Interesting concept...I think it should work as long as all your clients are 2K and higher.

Joseph L. Poandl
MCSE 2003

If your company is in need of experts to examine technical problems/solutions, please check out (Sales@njcomputernetworks.com)
 
Well Joseph I have this part :You will have h: = \\DFS_FQDN\DFS_SHARE\%username%" already figured out. I'm doing that through a vb logon script. I need to explain a little more. Lets say I map drive z that has all of my shares in it. I also want to have a folder that has the users initals in drive z also. Lets say his name is Mike Smith. I want msmith/home listed amongst the folders in the z drive. Also have you tried roaming profiles with dfs.
 
One thing is not clear, have you already created these folders or are you looking for a way to dynamically create them?

The system will toss out that "/" in your example. Use a period or hyphen so as not to be including an illegal character.

If you are just looking to have the folders get created when the user logs in, then you could do this in your login script (after the DFS is connected).

Set oFSO = CreateObject("Scripting.FileSystemObject")
Set WSHNetwork = CreateObject("WScript.Network")
UserString = WSHNetwork.UserName

If Not oFSO.FolderExists("H:\" & UserString & "-Home") Then
Call WSHShell.Run("cmd.exe /C md H:\" & UserString & "-Home")
End If

Set oFSO = Nothing
Set WSHNetwork = Nothing



The above grabs the username, checks to see if the directory exists and if not creates it. if the directory does exist it does nothing.

I hope you find this post helpful. Please let me know if it was.

Regards,

Mark
 
markdmac where you have the -home is that where I put what directory the folder should be created in.
 
Sorry Alpha...I'm not clear on what you looking to do. Could you spend a little more time trying to describe the problem?

Almost seems like you want this:

\\DFS_FQDN\DFS_SHARE\%username%\Home (But this type of mapping won't work when configured in the users profile.)

\\DFS_FQDN\DFS_SHARE\bsmith\home = You want the user to see: z:\bsmith\home but the user actually sees the home drive mapping Z:\bsmith with a subdirectory called home inside.


If you want this for the clients z:\bsmith\home, then you have to use a logon scipt (as far as I know)...

But I'm not really sure what you are looking for...


Joseph L. Poandl
MCSE 2003

If your company is in need of experts to examine technical problems/solutions, please check out (Sales@njcomputernetworks.com)
 
Yea, I am confised on what you want too. I have this set to make a directory like "msmith-home" in the above script.

If you want that to be "msmith\home" (and the msmith part already exists) then change the hyphen to a backslash and you are good to go.

If I've confused what you want to do please elaborate.

I hope you find this post helpful. Please let me know if it was.

Regards,

Mark
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top