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.
Where
statement: `gwmi win32_systemdriver | ? { (Get-ItemProperty $psitem.pathname).VersionInfo.companyname -NotLike "*microsoft*"}`. On the computer where I have entries with empty pathnames I also have to add the `where pathname` to get it to run successfully, but on another computer this wasn't necessary. – Robert Westerlund Mar 11 '14 at 09:13