Announcement

Collapse
No announcement yet.

DSQuery for inactive user accounts doesn't work!

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

  • DSQuery for inactive user accounts doesn't work!

    Hi There,

    I wonder if anyone can help me.

    I'm trying to use the command DSQuery to find inactive computer accounts in our Windows Server 2003 Native Mode Domains (Native 2003 Mode Forest also).

    Whatever syntax I use I appear to get no results from the query??!? (a blank line is shown)

    dsquery computer forestroot -inactive <NumWeeks>
    (dsquery computer dc=mydomain,dc=co,dc=uk -inactive

    dsquery computer domainroot -d <DomainName> -inactive <NumWeeks>
    (dsquery computer domainroot -d mydomain.co.uk -inactive

    dsquery computer ou=MyComputers,dc=rallencorp,dc=com -inactive <NumWeeks>
    (dsquery computer ou=development,dc=mydomain,dc=co,dc=uk -inactive

    Using the wwwjoeware.net utility oldcmp works fine.

    I have tried everything but I have no results from any query. I've run the queries on DC's my workstation and other systems and it still doesn't work. I am a domain and enterprise admin.

    Thanks

    Tom Bridle
    MCSE CCNA

  • #2
    Re: DSQuery for inactive user accounts doesn't work!

    dsquery computer domainroot -inactive 6 works for me

    your not putting the number of weeks in brackets <> are you?

    Michael
    Attached Files
    Michael Armstrong
    www.m80arm.co.uk
    MCITP: EA, MCTS, MCSE 2003, MCSA 2003: Messaging, CCA, VCP 3.5, 4, 5, VCAP5-DCD, VCAP5-DCA, ITIL, MCP, PGP Certified Technician

    ** Remember to give credit where credit is due and leave reputation points sigpic where appropriate **

    Comment


    • #3
      Re: DSQuery for inactive user accounts doesn't work!

      I wish I was, I'm afraid the syntax looks the same as your example, I just don't get any results.

      Very strange.

      Thanks

      Comment


      • #4
        Re: DSQuery for inactive user accounts doesn't work!

        Have you tried running the query directly from the server?

        Michael
        Michael Armstrong
        www.m80arm.co.uk
        MCITP: EA, MCTS, MCSE 2003, MCSA 2003: Messaging, CCA, VCP 3.5, 4, 5, VCAP5-DCD, VCAP5-DCA, ITIL, MCP, PGP Certified Technician

        ** Remember to give credit where credit is due and leave reputation points sigpic where appropriate **

        Comment

        Working...
        X