I need to read product version from control panel for specific application. I'm using this command till now.
Get-WmiObject Win32_Product -Filter "Name like 'ISASmaartHub'" | Select-Object -ExpandProperty
after upgrading my system to Windows 11 it is throwing this exception -
Select-Object : Missing an argument for parameter 'ExpandProperty'. Specify a parameter of type 'System.String' and try again.
At line:1 char:82
+ ... -Filter "Name like 'ISASmaartHub'" | Select-Object -ExpandProperty
+ ~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Select-Object], ParameterBindingException
+ FullyQualifiedErrorId : MissingArgument,Microsoft.PowerShell.Commands.SelectObjectCommand
Can anyone please suggest which command I should use to read the version of an application on Windows 11 system.
Thanks in advance!
Select-Object -ExpandPropertytoSelect-Object -ExpandProperty Version