Solved

Import Server 2003 Shares into 2008 DFS Folder Targets

Posted on 2010-11-17
6
953 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
Want to promote your upcoming event?

Are you going to an event? Are you going to be exhibiting at a tradeshow? Talking at a conference? Using a promotional banner in your email signature ensures that your organization’s most important contacts stay in the know and can potentially spread the word about the event.

 
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

Free book by J.Peter Bruzzese, Microsoft MVP

Are you using Office 365? Trying to set up email signatures but you’re struggling with transport rules and connectors? Let renowned Microsoft MVP J.Peter Bruzzese show you how in this exclusive e-book on Office 365 email signatures. Better yet, it’s free!

Join & Write a Comment

The article will include the best Data Recovery Tools along with their Features, Capabilities, and their Download Links. Hope you’ll enjoy it and will choose the one as required by you.
The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
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 tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…

760 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now