locked
How to Query active computers from last 4 weeks RRS feed

  • Question

  • Hello. I need some help, does anybody knows how to query Active computers on the last 4 weeks? I know how to query inactive but not active computers ...

    Thanks, and have a nice day

    Friday, March 4, 2011 5:22 PM

Answers

All replies

  • I have another issue, when i query the inactive computers from 4 weeks, the result is not real. We have a total of 1652 computers registered in our domain, where almost 300 doesnt exist anymore, so the result should be something like that, but i only get 71 machines.

    The query im using is the next one:

    dsquery computer "dc=gt, dc=domain, dc=corp" -inactive 5

    and this one too:

    dsquery computer -inactive 5

    The result is the same, and i dont get a correct

    We changed the domain functional level to 2003 native almost 4 months ago

    Friday, March 4, 2011 6:01 PM
  • The best tool would be using oldcmp(downloaded from Joe's site) from Joe & its free.

    c:\OldCmp.exe -report -age 28 >>comp.csv

    http://social.technet.microsoft.com/Forums/en-US/winserverDS/thread/412acb78-1648-41de-b2ca-591dfc4fa8b7

     

    Regards


    Awinish Vishwakarma| MY Blog

    Disclaimer: This posting is provided AS-IS with no warranties or guarantees and confers no rights.

    • Marked as answer by El Guayo Friday, March 4, 2011 10:43 PM
    Friday, March 4, 2011 6:18 PM
  • What do you mean by “Active computers on the last 4 weeks” ?  Recently joined computers?

    You can query all enabled computers using the following command:

    dsquery computer OU=Computers, DC=SAN,DC=com | dsget computer -dn -disabled | find  /i " no"

    Or you can use Joe’s OldCmp

    http://www.joeware.net/freetools/tools/oldcmp/index.htm

     


    Santhosh Sivarajan | MCTS, MCSE (W2K3/W2K/NT4), MCSA (W2K3/W2K/MSG), CCNA, Network+ Houston, TX

    Blogs - http://blogs.sivarajan.com/
    Articles - http://www.sivarajan.com/publications.html
    Twitter: @santhosh_sivara - http://twitter.com/santhosh_sivara

    This posting is provided AS IS with no warranties, and confers no rights.
    Friday, March 4, 2011 6:18 PM
  • Thanks for the Help guys, the OldCmp was the solution. Have a nice day.
    Friday, March 4, 2011 10:44 PM
  • Yes, i too had similar issue in the past,used OldCmp & found its accurate.Glad, it helped you, say thanks to Joe.

     

    Regards


    Awinish Vishwakarma| MY Blog

    Disclaimer: This posting is provided AS-IS with no warranties or guarantees and confers no rights.

    Saturday, March 5, 2011 3:17 AM