TIP: repadmin /listhelp makes repadmin easier to use

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Jason Robarts [MSFT] (jasonrob_at_online.microsoft.com)
Date: 08/02/04


Date: Mon, 2 Aug 2004 14:52:05 -0700

Many of the commands on the version of repadmin that ships with Windows
Server 2003 and Active Directory Application Mode support a richer way of
specifying items. It is much easier to specify things like the name of a
naming context or a list of DCs to use in a command. Repadmin /listhelp
provides information on how to use these features.

For example the new repadmin /replicate command supports the following
syntax:

Repadmin /showrepl [DC_LIST [Source DC object GUID]] [Naming Context]
[/verbose] [/nocache] [/repsto] [/conn] [/all] [/errorsonly] [/intersite]

Notice I can specify a DC_LIST. Repadmin /listhelp indicates the following
as possible options for a DC_LIST (See repadmin /listhelp for more details):

DC_LIST = { <DC_NAME> | * | <part_server_name>* | site:<SITE_NAME> | gc: |
fsmo_<FSMO_TYPE>:<FSMO_DN> }

I'm particularly interested in <part_server_name>*.

In my enterprise the bridgeheads for my Data-Center-Site are named BHDC1,
 BHDC2, BHDC3. To show the replication status on each of these DCs
I can use the command:

Repadmin /showrepl BHDC*

Another example is the repadmin /kcc command. It supports the following
syntax:

Repadmin /kcc [DC_LIST] [/async]

In the above DC_LIST description there is a FSMO_TYPE option. We find the
following in the repadmin /listhelp:

FSMO_TYPE = dnm | schema | pdc | rid | im | istg

.

"fsmo_istg:" - is a site specific quasi-FSMO, and takes the RDN of the site.

So to run the KCC on the ISTG of my Data-Center-Site I can write:

Repadmin /kcc fsmo_istg:Data-Center-Site

These are but 2 examples of new support in repadmin to make it easier to
use.

Jason

-- 
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm


Relevant Pages

  • TIP: repadmin /listhelp makes repadmin easier to use
    ... Many of the commands on the version of repadmin that ships with Windows ... specifying items. ... naming context or a list of DCs to use in a command. ...
    (microsoft.public.windows.server.active_directory)
  • Re: Debug.exe for win32
    ... Format is: n) e address t=n ... Display the debug registers. ... R DRx command. ... The help output can be limited by specifying the first letterof the ...
    (alt.lang.asm)
  • Re: Startup.cmd
    ... I can't recall ever having tested this in an OS/2 session with earlier versions of OS/2, but both eCS1.2 and MCP1 refuse to execute a hidden cmd or exe file. ... If it works in a DOS session, ... You can either set these options at the dir command or by ... However if a bat or exe file is hidden it can still be executed in the usual way by specifying its name on the command line. ...
    (comp.os.os2.bugs)
  • Re: How to get the application path
    ... I guess in the cases I use it, I always launch a program by specifying ... That is typically the case for launching from an icon, ... I'm enougb of a dinosaur that I still use command lines for ... the string refers to. ...
    (comp.lang.ada)
  • Re: finding complex root from nonlinear equations with complex arguments
    ... I'd like to know how to pass constants from the command line for the ... line rather than specifying in the file itself. ... function coeffs = findTheCoefficients ... POLYVAL accepts a vector of polynomial coefficients and a value and ...
    (comp.soft-sys.matlab)