+ 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. #2

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,804
    Thank Post
    110
    Thanked 583 Times in 504 Posts
    Blog Entries
    1
    Rep Power
    224

    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.

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

    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.

  4. #4

    localzuk's Avatar
    Join Date
    Dec 2006
    Location
    Minehead
    Posts
    17,791
    Thank Post
    517
    Thanked 2,468 Times in 1,912 Posts
    Blog Entries
    24
    Rep Power
    835

    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.

  5. #5
    sahmeepee's Avatar
    Join Date
    Oct 2005
    Location
    Greater Manchester
    Posts
    795
    Thank Post
    20
    Thanked 70 Times in 42 Posts
    Rep Power
    34

    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)

  6. #6

    Join Date
    May 2007
    Location
    Birmingham
    Posts
    169
    Thank Post
    9
    Thanked 45 Times in 36 Posts
    Rep Power
    27

    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, 09: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
  •