DFS: deactivating links per console,

Discussion in 'File Systems' started by Simon Zimmer, Jun 25, 2004.

  1. Simon Zimmer

    Simon Zimmer Guest

    Hi,

    can someone point me to a tool, that could deactivate DFS links?
    We have a domain-based root DFS with several targets.

    e.g.:
    \\w2k3\dfs\share1

    with two links to \\server1\share1 and \\server2\share1

    Replication is done by robocopy.

    I want to deactivate one link, so that all users only get redirected to
    server1. Could dfscmd or dfsutil do that for me? I only found a solution
    for deleting links.
    Or is there another possibility to force dfs using only server1?

    Thx for your help
    Simon
     
    Simon Zimmer, Jun 25, 2004
    #1
    1. Advertisements

  2. Can you use dfsgui.msc to disable referral to the server you don't
    want users to access? That will stop subsequent requests from being
    refered to the server when they go through the DFS link, but existing
    connections to that server's share won't be magically transferred.

    --Richard

    Please post FRS related questions to
    microsoft.public.windows.server.dfs_frs and prefix the subject line
    with "FRS:" to make it easier to spot. Note that FRS is used to
    replicate SYSVOL on domain controllers and DFS root and link targets.

    For additional FRS resources, please visit
    http://www.microsoft.com/frs.

    This posting is provided "AS IS" with no warranties, and confers no
    rights.
     
    Richard Chinn [MSFT], Jun 25, 2004
    #2
    1. Advertisements

  3. Simon Zimmer

    Simon Zimmer Guest

    Hi Richard,
    i know thaht it is possible to use the dfsgui.msc but i don't want to do
    that manually. i want to write a script that will disable all referrals
    every time i shutdown this server, so that all get redirected to the
    other still active server.
    Normally the users all should work on \\server1\share1 and only if
    server1 is going done for maintaince the script should automatically
    deactivate the referrals to server1 and activate them for server2.

    i also searched the MSDN Library but can't find a method i could use.
    http://msdn.microsoft.com/library/d...gmt/distributed_file_system_dfs_functions.asp
    that should not be a problem.

    Simon
     
    Simon Zimmer, Jun 26, 2004
    #3
  4. I checked with someone more familiar with DFS. There are two options
    for programmatically changing the referral state on a DFS link.

    1) You can use the NetDfsSetInfo API with DFS_LEVEL_101.
    http://msdn.microsoft.com/library/en-us/netmgmt/netmgmt/netdfssetinfo.asp?frame=true
    http://msdn.microsoft.com/library/en-us/netmgmt/netmgmt/dfs_info_101_str.asp?frame=true

    2) You can use dfsutil.exe to export an XML file that displays the
    state of the roots and links. You can edit the XML, then use
    dfsutil.exe to import it. This could probably be done using scripts
    and might be more suitable for your needs.

    --Richard

    Please post FRS related questions to
    microsoft.public.windows.server.dfs_frs and prefix the subject line
    with "FRS:" to make it easier to spot. Note that FRS is used to
    replicate SYSVOL on domain controllers and DFS root and link targets.

    For additional FRS resources, please visit
    http://www.microsoft.com/frs.

    This posting is provided "AS IS" with no warranties, and confers no
    rights.
     
    Richard Chinn [MSFT], Jun 28, 2004
    #4
  5. Simon Zimmer

    Simon Zimmer Guest

    Hi Richard,
    that is exactly what i was looking for.

    Thx for your help
    Simon
     
    Simon Zimmer, Jun 30, 2004
    #5
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.