![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | quest cmdlet : get-qadcomputer i m trying to retrieve computer objects that is NOT server OS. That is results shld be windows 2000 prof, xp, vista, etc get-qadcomputer -sizelimit 0 | where {$_.osname -ne '*server*'} | select osname, osservicepack. Somehow it does not work. i suspect it has something to do with $_osname ? |
My System Specs![]() |
| | #2 (permalink) |
| | 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 Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Quest AD Cmdlet as part of a script | PowerShell | |||
| Quest AD cmdlet -what is the cmdlet to remove computer object | PowerShell | |||
| Get-QADComputer | PowerShell | |||
| Invoking Cmdlet Get-Location from cmdlet,cant get Currnt Directory | PowerShell | |||
| need help with Get-QADComputer | PowerShell | |||