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 ...
-
4th December 2007, 06:15 PM #1
- 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
-
-
IDG Tech News
-
5th December 2007, 10:49 AM #2 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.
-
-
5th December 2007, 10:54 AM #3 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.
-
-
5th December 2007, 11:11 AM #4 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.
-
-
5th December 2007, 11:56 AM #5 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)
-
-
5th December 2007, 12:34 PM #6 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:
Similar Threads
-
By localzuk in forum Windows
Replies: 1
Last Post: 6th December 2007, 10:20 AM
-
By sidewinder in forum Windows
Replies: 3
Last Post: 1st August 2007, 10:00 PM
-
By Halfmad in forum Windows
Replies: 10
Last Post: 31st March 2007, 05:40 PM
-
By secman in forum Windows
Replies: 4
Last Post: 27th September 2006, 02:31 PM
-
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
-
Forum Rules