Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Import Server 2003 Shares into 2008 DFS Folder Targets

Posted on 2010-11-17
6
981 Views
Last Modified: 2012-05-10
I have about 250 different shares on a single Server 2003 SP2 server.  I'm implementing a domain-based DFS namespace and am looking for a way to feed the DFS server with the shares stored on the 2003 server.

So, if I have:

\\Server2003\Users
\\Server2003|data
\\Server2003\accounting
etc...

I don't want to (or would like to avoid) adding all of these by hand into the DFS Name Space targets...  what I would like is to run some tool which will basically take all shares from Server2003 and add them to my namespace...

i.e. so that the following are automatic:

\\domain.local\root\Users
\\domain.local\root\data
\\domain.local\root\accounting

over 200 times...  Is this doable?
0
Comment
Question by:taki1gostek
  • 3
  • 3
6 Comments
 
LVL 42

Expert Comment

by:kevinhsieh
ID: 34161715
0
 
LVL 2

Author Comment

by:taki1gostek
ID: 34163414
I'm aware of the dfutil's existence but unsure of the syntax I'd follow to enumerate all shares and appropriate share permissions in dfs from the file server.  Would you be able to give me a hand with that?
0
 
LVL 42

Expert Comment

by:kevinhsieh
ID: 34168287
To get a list of all your shares, go to Computer Management, System Tools, Shared Folders. Right click on Shares, and Select Export List... . That will get you all shares, including the hidden ones. You can then bring that into Excel, and add some columns for the commands you need.

dfsutil link add <DfsPath> <\\server\sharepath> [Restore] [<Comment>]

I took the syntax straight from the TechNet blog post.
0
NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

 
LVL 2

Author Comment

by:taki1gostek
ID: 34170188
ok, i've seen the link add syntax, but how would I feed this command line with the output of my shares?  i.e. dfsutil link add <<path to filename.txt>> ?   Thanks, Kevin
0
 
LVL 42

Accepted Solution

by:
kevinhsieh earned 500 total points
ID: 34170835
I build it in Excel. You can easily fill down the cells with the repeating command, and then have a column for the DFS path, and another with the target path. Make it look like a batch file, and then save it as a .txt file with a .cmd extension and run it.
0
 
LVL 2

Author Closing Comment

by:taki1gostek
ID: 34172089
Thanks... It was obvious after I asked the last question.  Sometimes the obvious has to be pointed out, one last thing in layman's terms what is the difference between link add and target add, shouldn't I be using target add?
0

Featured Post

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
In this article we will learn how to backup a VMware farm using Nakivo Backup & Replication. In this tutorial we will install the software on a Windows 2012 R2 Server.
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…
This Micro Tutorial will teach you how to reformat your flash drive. Sometimes your flash drive may have issues carrying files so this will completely restore it to manufacturing settings. Make sure to backup all files before reformatting. This w…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question