Announcement

Collapse
No announcement yet.

Global catalogs

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Global catalogs

    I have a small intra-site setup. Contains (2) Windows 2003 DC's. Both are designated as Global catalogs. All the FSMO roles reside on DC1. When users authenticate it appears everyone is going against DC2. Just curious does AD perform some sort of balancing when users login to the domain. Is there a way to tell how many users have authenticated against DC1 vs DC2?

    ZT

  • #2
    Re: Global catalogs

    yes thats possible but you'll have to configure audit policies on your DC's

    http://technet.microsoft.com/en-us/l...67(WS.10).aspx

    bio..

    Comment


    • #3
      Re: Global catalogs

      Another way would be to whack this in a GPO for a few weeks to get a feel for DC1 vs DC2 authentications.

      echo %logonserver% %username% %date% %time% >> \\server\logins$\logon.txt

      Comment


      • #4
        Re: Global catalogs

        I think in the middle of the day see how many people are authenticated to which server would suffice.

        I would use something along the lines as:
        (this is just an example)

        net view |find /i "\\" > c:\workstations.txt
        next use a script that asks all of the workstations to wich server they logged on(use PSexec for example)

        For %%i in (c:\workstations.txt) do (psexec %%i %logonserver% etc)

        If you need more help with this please let me know.
        Please give points where appropriate

        <I dont create ready scripts for you, but I'm willing to point you in the right direction>

        Comment


        • #5
          Re: Global catalogs

          Just want to thank everyone for the replies.

          Silver23...I am not a scripting person my any means. Do you have any pointers on how to create the workstation.txt file?

          ZT

          Comment


          • #6
            Re: Global catalogs

            Yes, maybe I should elaborate

            net view |find /i "\\" > c:\workstations.txt
            use the above command to create a workstations.txt file containing only computernames on your local network. (and that are online)

            Next:
            For %%i in (c:\workstations.txt) do (psexec %%i %logonserver% etc)

            What this does is for every line in your workstations.txt file it runs a command, the command is right after "do".
            You can get the psexec.exe from the microsoft website.(should be listed as sysinternal tool)

            Next is a complete script actually. didnt test it but you should be alright with this.

            For %%i in (c:\workstations.txt) do (
            echo. >> textfile.txt
            psexec %%i hostname >> textfile.txt
            psexec %%i %logonserver% >> textfile.txt
            echo. >> textfile.txt
            echo. >> textfile.txt
            )
            Please give points where appropriate

            <I dont create ready scripts for you, but I'm willing to point you in the right direction>

            Comment


            • #7
              Re: Global catalogs

              If you use the code tags it might become a bit more readable.
              Marcel
              Technical Consultant
              Netherlands
              http://www.phetios.com
              http://blog.nessus.nl

              MCITP(EA, SA), MCSA/E 2003:Security, CCNA, SNAF, DCUCI, CCSA/E/E+ (R60), VCP4/5, NCDA, NCIE - SAN, NCIE - BR, EMCPE
              "No matter how secure, there is always the human factor."

              "Enjoy life today, tomorrow may never come."
              "If you're going through hell, keep going. ~Winston Churchill"

              Comment


              • #8
                Re: Global catalogs

                How do I do that ? Besides in Italic it is pretty readable isnt it ?
                Please give points where appropriate

                <I dont create ready scripts for you, but I'm willing to point you in the right direction>

                Comment


                • #9
                  Re: Global catalogs

                  This should give a comparrison between CODE tags and italics. Also, when using the CODE tag, it doesn't wordwrap the text if it exceeds the page width. This saves confusion when there is a particularly long piece of code, though this is not an issue with Silver's script.

                  The CODE tag is implimented by blocking the text and then clicking the hash icon # on the toolbar.

                  Below is a copy of Silver23's post from above.
                  -----------------------------------------------------

                  Yes, maybe I should elaborate

                  Code:
                  net view |find /i "\\" > c:\workstations.txt
                  use the above command to create a workstations.txt file containing only computernames on your local network. (and that are online)

                  Next:
                  Code:
                  For %%i in (c:\workstations.txt) do (psexec %%i %logonserver% etc)
                  What this does is for every line in your workstations.txt file it runs a command, the command is right after "do".
                  You can get the psexec.exe from the microsoft website.(should be listed as sysinternal tool)

                  Next is a complete script actually. didnt test it but you should be alright with this.

                  Code:
                  For %%i in (c:\workstations.txt) do (
                  echo. >> textfile.txt
                  psexec %%i hostname >> textfile.txt
                  psexec %%i %logonserver% >> textfile.txt
                  echo. >> textfile.txt
                  echo. >> textfile.txt
                  )
                  Last edited by biggles77; 22nd November 2009, 14:18.
                  1 1 was a racehorse.
                  2 2 was 1 2.
                  1 1 1 1 race 1 day,
                  2 2 1 1 2

                  Comment


                  • #10
                    Re: Global catalogs

                    Probably you are using the quick reply button
                    Anyhow, when posting scripts, often they are formatted with spaces or tabs.

                    The code tags are [code] and the [ /code] (without the space) or indeed using the # sign in the advanced editor.
                    I know the syntax in de example is wrong, but just to get the picture

                    If you read this for example, the second one is more readable then the first one, especially when scripts might getting large.

                    if something equals bla
                    {
                    do something
                    do something more
                    and maybe even more..
                    }

                    If something equals blabla
                    {
                    do something else
                    }

                    Wile counter < 10 do
                    {
                    blabla
                    counter +1
                    }

                    Code:
                    if something equals bla
                    {
                    	do something
                    	do something more
                    	and maybe even more..
                    }
                    
                    If something equals blabla
                    {
                    	do something else
                    }
                    
                    Wile counter < 10 do
                    {
                    	blabla
                    	counter +1
                    }
                    loop
                    Marcel
                    Technical Consultant
                    Netherlands
                    http://www.phetios.com
                    http://blog.nessus.nl

                    MCITP(EA, SA), MCSA/E 2003:Security, CCNA, SNAF, DCUCI, CCSA/E/E+ (R60), VCP4/5, NCDA, NCIE - SAN, NCIE - BR, EMCPE
                    "No matter how secure, there is always the human factor."

                    "Enjoy life today, tomorrow may never come."
                    "If you're going through hell, keep going. ~Winston Churchill"

                    Comment


                    • #11
                      Re: Global catalogs

                      Alright, thx for the explanation.
                      Code:
                       I'll try to use code from now on
                      zoetaite did you get the script working ? Or is something still unclear ?
                      Please give points where appropriate

                      <I dont create ready scripts for you, but I'm willing to point you in the right direction>

                      Comment

                      Working...
                      X