Solved

Import Server 2003 Shares into 2008 DFS Folder Targets

Posted on 2010-11-17
6
1,001 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
[X]
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
  • 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
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 
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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Resolving an irritating Remote Desktop connection that stops your saved credentials from being used.
A look at what happened in the Verizon cloud breach.
This tutorial will walk an individual through the process of installing the necessary services and then configuring a Windows Server 2012 system as an iSCSI target. To install the necessary roles, go to Server Manager, and select Add Roles and Featu…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Suggested Courses

630 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