Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. wriedy

    How to put in multiple values in a where-object filter

    Slight modification to your filter script block on the Where-Object. You are looking to compare a single value ($_.name) to ensure it is not in the array of excluded servers Get-ADGroupmember -Identity Servers | Where-Object{$_.name -notin $excludedservers} | Select-Object...
  2. wriedy

    Count of WMIObject returns null instead of 1

    PowerShell has a habit of unwrapping an array if there is one or no entries in the array. You can force the datatype of a variable. I would suggest you make the following change: [array] $printJobs = Get-WmiObject Win32_PrintJob -ComputerName gdceps02w12v | Where-Object...

Part and Inventory Search

Back
Top