|
|
FAQ
Search
Memberlist
Usergroups
Register
Profile
Private messages
Log in
|
|
| Author |
Message |
al Guest
|
Posted: Tue Jul 10, 2007 2:44 am Post subject: Dsquery Computer Inactive & O/S? |
|
|
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
|
Posted: Sat Jul 28, 2007 12:39 am Post subject: Re: Dsquery Computer Inactive & O/S? |
|
|
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 |
|
 |
|
|