> Note you have to use a script, it
> won't run by pasting it into a CMD prompt. Be sure to change the domain
> info listed in all caps to your respective domain.
>
> @for /f %%i in ('dsquery.exe *
> "cn=partitions,cn=configuration,dc=SUBDOMAIN,dc=DOMAIN,dc=COM" -filter
> "(&(objectcategory=crossref)(systemflags=3))" -attr nCname') do
> dsquery.exe * "%%i" -Filter
> "(&(objectCategory=computer)(objectClass=computer)(primaryGroupID=516))"
> -Scope Subtree -Limit 0 -Attr dnshostname operatingsystem
> operatingsystemservicepack | find /v /i "operatingsystem"
> >>DC-Inventory-OS-Version.LOG
>Unless I'm completely misremembering my for-do syntax, I think you can run that from a plain old command prompt by changing the '%%' instances to just '%'. 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/
