List 3rd party drivers thru Powershell 3.0

I am trying to get the list of 3rd party drivers installed on a Windows 8 machine.

gwmi win32_systemdriver| ? ((Get-ItemProperty $psitem.pathname).VersionInfo).companyname -NotLike *microsoft*

Error : Get-ItemProperty : Cannot bind argument to parameter 'Path' because it is null.

Is there a one-liner way getting around this problem.


Answer moved from comment discussion on question:

Say that you want to show the Status, State, Name and CompanyName properties for each of the found items, you could do something like the following:

gwmi win32_systemdriver | 
    select *, @{ N='CompanyName';E={ (Get-ItemProperty $_.pathname -ErrorAction Ignore).VersionInfo.companyname }} | 
    Where companyname -NotLike "*microsoft*" | 
    sort state | 
    ft Status, State, Name, ExitCode, CompanyName.

Need Your Help

Ruby on rails load local csv data to heroku

ruby-on-rails heroku heroku-postgres

I am trying to import data to a postgres database in heroku. I am able to upload the correct schema to heroku by using the command:

Algorithm for text selection intersection

c# algorithm

I have a website that allows multiple users to highlight multiple parts of a html document (mostly text).