Best method to get all unassigned incidents

Sep 8, 2011 at 10:16 PM

What would be the best option to retrieve all unassigned incidents in PowerShell?

I know I can always do something like this:

Get-SCSMIncident -Status "Active" -CreatedBefore $BeforeDate | where { $_.AssignedTo -eq $NULL }

But what if I want to get all unassigned incidents without looking at the status or the creation date?

Get-SCSMIncident | where { $_.AssignedTo -eq $NULL }    is out of the question as it would take forever and it's just bad coding..

Any ideas?

Thanks!