Next AD Computer Account

  • Hi All..

    I am looking to create a report that will list let’s say the next 10 available AD computer names in a specific OU

    I have managed to query AD and list all the machines that are in a specific OU

    Is there a function in SQL I can use to identify a sequence and generate the next computer numbers and display in a report.

    Thanks in advance.

  • Are you talking about ROW_NUMBER()?

  • James.Bowtell - Thursday, February 1, 2018 10:52 AM

    Hi All..I am looking to create a report that will list let’s say the next 10 available AD computer names in a specific OUI have managed to query AD and list all the machines that are in a specific OU Is there a function in SQL I can use to identify a sequence and generate the next computer numbers and display in a report. Thanks in advance.

    There is no built in function to recognize the naming pattern, convention that you use for in  AD to name computers. You would need to write your own.

    Sue

  • Get the most recently added computer from active directory. Strip the alpha characters so only the number is left. Increase the number.

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply