View Single Post
Old 08-22-2008   #2 (permalink)
Shay Levy [MVP]


 
 

Re: quest cmdlet : get-qadcomputer

Hi IT,

Replace -ne with -notlike


Or better, use ldap filter:

get-qadcomputer -sizelimit 0 -ldap '(!operatingSystem=*server*)' | select
name,osname, osservicepack


---
Shay Levy
Windows PowerShell MVP
http://blogs.microsoft.co.il/blogs/ScriptFanatic



IS> i m trying to retrieve computer objects that is NOT server OS. That
IS> is results shld be windows 2000 prof, xp, vista, etc
IS>
IS> get-qadcomputer -sizelimit 0 | where {$_.osname -ne '*server*'} |
IS> select osname, osservicepack.
IS>
IS> Somehow it does not work. i suspect it has something to do with
IS> $_osname ?
IS>


My System SpecsSystem Spec