+ Post New Thread
Results 1 to 6 of 6
Windows Thread, inactive computer accounts win2k3 server in Technical; hey all! I've been looking at clearing these old accounts out - cant really use the tools out there would ...
  1. #1

    Join Date
    Mar 2007
    Posts
    20
    Thank Post
    2
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    inactive computer accounts win2k3 server

    hey all! I've been looking at clearing these old accounts out - cant really use the tools out there would like to stick with the micorosft tools : So I have been looking at using either

    dsquery computer -inactive (noofweeks) {doesn't work on my network}

    and

    dsquery computer -stalepwd (noofdays) {works ok on my network}

    which apparently you can pipe with the dsrm command.

    i can get the list of inactive accounts ok but i cant seem to get the switch right to remove them in that line.

    have tried

    dsquery computer -stalepwd 180 ¦ dsrm

    and it errors with startnode incorrect format.

    any one out there can show me the light? think i am being a bit blind here!


    ta j

  2. IDG Tech News

  3. #2
    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,056
    Blog Entries
    1
    Thank Post
    104
    Thanked 439 Times in 380 Posts
    Rep Power
    114

    Re: inactive computer accounts win2k3 server

    you can only pipe the output from 'dsquery computer -inactive (weeks)' to dsrm. So you'll have to get that working if that's what you want to do.

  4. #3
    mrforgetful's Avatar
    Join Date
    May 2006
    Posts
    1,626
    Thank Post
    7
    Thanked 15 Times in 15 Posts
    Rep Power
    18

    Re: inactive computer accounts win2k3 server

    I know you said you wanted to use the built in stuff but AD Manager Plus does some good reports, quick and easy to install with fully functional 30 day trial.

    I always liked that program but never got it, when my trial ran out I'd done all I needed to.

  5. #4

    localzuk's Avatar
    Join Date
    Dec 2006
    Location
    Bristol
    Posts
    12,970
    Blog Entries
    24
    Thank Post
    438
    Thanked 1,502 Times in 1,179 Posts
    Rep Power
    459

    Re: inactive computer accounts win2k3 server

    To get it working you need to raise the domain functional level to Windows 2003 native. Then wait a period of time for the attributes to actually mean anything.

  6. #5
    sahmeepee's Avatar
    Join Date
    Oct 2005
    Location
    Greater Manchester
    Posts
    796
    Thank Post
    20
    Thanked 67 Times in 41 Posts
    Rep Power
    29

    Re: inactive computer accounts win2k3 server

    Either way, that won't make dsrm work.. you just need to add the -noprompt switch to get it to accept input from STDIN properly:

    dsquery computer -stalepwd 180 | dsrm -noprompt

    (also your pipe character wasn't the same as mine, but I'm not sure if that's the forum mangling it)

  7. #6

    Join Date
    May 2007
    Location
    Birmingham
    Posts
    146
    Thank Post
    8
    Thanked 35 Times in 30 Posts
    Rep Power
    17

    Re: inactive computer accounts win2k3 server

    try something calld oldcmp it is just an exe file but it is very good and can output in html, csv etc below is the address.

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

    Jordan

SHARE:
+ Post New Thread

Similar Threads

  1. Replies: 1
    Last Post: 6th December 2007, 10:20 AM
  2. Replies: 3
    Last Post: 1st August 2007, 10:00 PM
  3. Replies: 10
    Last Post: 31st March 2007, 05:40 PM
  4. Replies: 4
    Last Post: 27th September 2006, 02:31 PM
  5. Transfer Accounts & Passwords from NT4 PDC to Server 2003
    By OutToLunch in forum How do you do....it?
    Replies: 11
    Last Post: 24th July 2006, 02:03 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •