Hi Jitendra, As a frequent user of joeware <smile>, I hope I can pipe in and comment that joe's adfind.exe is strictly a querying tool and you can achieve your quest with:
adfind -default -f "(&(objectcategory=computer)(useraccountcontrol:1.2.840.113556. 1.4.803:=2))" (watch the line wrap) Mike Thommes Ps. There was a discussion about this on this maillist on 10/14/05. Check the archives. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of joe Sent: Thursday, October 20, 2005 4:16 PM To: ActiveDir@mail.activedir.org Subject: RE: [ActiveDir] Need ADSI Scripting help. Just as an FYI, scripts are just as dangerous or more so. It is why I wrote oldcmp in the first place. Too many people biting themselves in the ass. I don't know how I could put more rubber bumpers on that tool unless I started asking questions to gauge levels of intelligence and whether or not certain switches should be allowed. :o) I understand the security department route though too. If they are antsy because it is freeware, let me know and I can charge you 100k or so for it and you get everything you get now plus a bill. :o) -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jitendra Kalyankar Sent: Thursday, October 20, 2005 4:29 PM To: ActiveDir@mail.activedir.org Subject: Re: [ActiveDir] Need ADSI Scripting help. I know about the Oldcmp.exe, but the thing is the tool is really powerful and I don't want Jr. Sys. Admins doing something or deleting something that they are not suppose to. And again I will have to go through the security department route to use it. Too much hassel.... Hope that explains my situation. Sincerely, Jitendra Kalyankar On 10/20/05, Creamer, Mark <[EMAIL PROTECTED]> wrote: > Before you do this, see oldcmp at www.joeware.net > > http://www.joeware.net/win/free/index.htm > > > > <mc> > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Jitendra > Kalyankar > Sent: Thursday, October 20, 2005 4:14 PM > To: ActiveDir@mail.activedir.org > Subject: [ActiveDir] Need ADSI Scripting help. > > I am looking for some example script and/or help for the script I am > writing for my company. What I want to achieve is if I run the script > against the machine list which will be in the text file, it should > give me the output in the text file saying which machine account is > enabled, disabled or not found. > > I know how to manipulate the text files using fso object but I am not > sure what do I need to use to get the attributes of computer container > in AD. Any help in this regard is highly appreciated and valued. > > Please let me know if you need more information abou this. > > -- > Thanks, > Jitendra Kalyankar > List info : http://www.activedir.org/List.aspx > List FAQ : http://www.activedir.org/ListFAQ.aspx > List archive: > http://www.mail-archive.com/activedir%40mail.activedir.org/ > > This e-mail transmission contains information that is intended to be confidential and privileged. If you receive this e-mail and you are not a named addressee you are hereby notified that you are not authorized to read, print, retain, copy or disseminate this communication without the consent of the sender and that doing so is prohibited and may be unlawful. Please reply to the message immediately by informing the sender that the message was misdirected. After replying, please delete and otherwise erase it and any attachments from your computer system. Your assistance in correcting this error is appreciated. > List info : http://www.activedir.org/List.aspx > List FAQ : http://www.activedir.org/ListFAQ.aspx > List archive: > http://www.mail-archive.com/activedir%40mail.activedir.org/ > -- Thanks, Jitendra Kalyankar List info : http://www.activedir.org/List.aspx List FAQ : http://www.activedir.org/ListFAQ.aspx List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/ List info : http://www.activedir.org/List.aspx List FAQ : http://www.activedir.org/ListFAQ.aspx List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/ List info : http://www.activedir.org/List.aspx List FAQ : http://www.activedir.org/ListFAQ.aspx List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/