Global catalogs

This topic contains 10 replies, has 6 voices, and was last updated by Avatar zoetaite 9 years, 11 months ago.

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • Avatar
    zoetaite
    Member
    #145787

    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

    Avatar
    bio
    Member
    #360564

    Re: Global catalogs

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

    http://technet.microsoft.com/en-us/library/cc787567(WS.10).aspx

    bio..

    Avatar
    ethos
    Member
    #339923

    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.

    Quote:
    echo %logonserver% %username% %date% %time% >> \serverlogins$logon.txt
    Avatar
    Silver23
    Member
    #292228

    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.

    Avatar
    zoetaite
    Member
    #366918

    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

    Avatar
    Silver23
    Member
    #292235

    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
    )

    Avatar
    Dumber
    Participant
    #200604

    Re: Global catalogs

    If you use the code tags it might become a bit more readable.

    Avatar
    Silver23
    Member
    #292247

    Re: Global catalogs

    How do I do that ? Besides in Italic it is pretty readable isnt it ?

    Avatar
    biggles77
    Spectator
    #210395

    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

    net view |find /i “\” > c:workstations.txt [/CODE]
    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)[/CODE]

    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
    )[/CODE][CODE]net view |find /i “\” > c:workstations.txt [/CODE]
    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)[/CODE]

    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
    )[/CODE][CODE]For %%i in (c:workstations.txt) do (psexec %%i %logonserver% etc)[/CODE]

    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
    )[/CODE][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
    )[/CODE]

    Avatar
    Dumber
    Participant
    #200619

    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.

    [I]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
    }
    [/I]
    [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

    Avatar
    Silver23
    Member
    #292251

    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 ?

Viewing 11 posts - 1 through 11 (of 11 total)

You must be logged in to reply to this topic.