Dsquery Computer Inactive & O/S?
 




IT Certification FAQ

 
|
Home
|
Microsoft
|
CISCO
|
CompTIA
|
Exam/Study FAQ
|
Employment FAQ
| Links  | Forums  |
Book Reviews


FAQFAQ  SearchSearch  MemberlistMemberlist  UsergroupsUsergroups  RegisterRegister  ProfileProfile  Log in to check your private messagesPrivate messages  Log inLog in

Dsquery Computer Inactive & O/S?

 
Post new topic   Reply to topic    Forum Index -> microsoft.public.windows.server.active_directory
Author Message
al
Guest





PostPosted: Tue Jul 10, 2007 2:44 am    Post subject: Dsquery Computer Inactive & O/S? Reply with quote

Hi there - I would like to pull all inactive computer objects w/in a
specific OU and have the computer's distinguished name & O/S
information. I was told I could use dsquery for this but now I am
starting to wonder if that is true.

I can pull the computer's distinguished name & O/S with this dsquery
command:
dsquery * "OU=x,OU=y,DC=z" -filter (objectCategory=Computer) -attr
distinguishedName operatingSystem operatingSystemVersion -limit 0
This returns the computer's name and O/S but I still need to know if
the computer is inactive (not on the network for x number of weeks).

I can pull the inactive (for 15 weeks) information with this dsquery
command: dsquery computer -limit 0 -inactive 15 "OU=x,OU=y,DC=z"

Is there a way to combine both of these commands so I don't have to do
multiple lists and diff them? I would think there would be but so far
I can't find it!!

Any ideas?
TIA

al
Back to top
Greg
Guest





PostPosted: Sat Jul 28, 2007 12:39 am    Post subject: Re: Dsquery Computer Inactive & O/S? Reply with quote

I use OldCmp for the same situation but now need to pull a report of user
objects that 1) have been inactive for 30 days and 2) have a certain custom
attribute value. I can't seem to get DSQUERY and DSGET to pipe this out
together. Ideas?

thx!
-Greg

"Paul Bergson [MVP-DS]" wrote:

Quote:
Look at using oldcmp from Joe Richard's, this is the perfect tool for what
you need.

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

--
Paul Bergson
MVP - Directory Services
MCT, MCSE, MCSA, Security+, BS CSci
2003, 2000 (Early Achiever), NT

http://www.pbbergs.com

Please no e-mails, any questions should be posted in the NewsGroup
This posting is provided "AS IS" with no warranties, and confers no rights.

"al" <al@pakipsy.com> wrote in message
news:1184030218.885401.180520@m37g2000prh.googlegroups.com...
Hi there - I would like to pull all inactive computer objects w/in a
specific OU and have the computer's distinguished name & O/S
information. I was told I could use dsquery for this but now I am
starting to wonder if that is true.

I can pull the computer's distinguished name & O/S with this dsquery
command:
dsquery * "OU=x,OU=y,DC=z" -filter (objectCategory=Computer) -attr
distinguishedName operatingSystem operatingSystemVersion -limit 0
This returns the computer's name and O/S but I still need to know if
the computer is inactive (not on the network for x number of weeks).

I can pull the inactive (for 15 weeks) information with this dsquery
command: dsquery computer -limit 0 -inactive 15 "OU=x,OU=y,DC=z"

Is there a way to combine both of these commands so I don't have to do
multiple lists and diff them? I would think there would be but so far
I can't find it!!

Any ideas?
TIA

al



Back to top
Display posts from previous:   
Post new topic   Reply to topic    Forum Index -> microsoft.public.windows.server.active_directory All times are GMT
Page 1 of 1

 

Copyright © 2002-2006 Web-S-Sense Pty. Ltd. All rights reserved.

Powered by phpBB
Advertising | Policies/Disclaimers | Contact us | Link to us


Featured Sites: Free Antivirus and Antispyware Info | Free PC Support | MCSE Directory