How to get the value of currently installed MS Word version using PowerShell?
Posted: Wed Aug 08, 2018 12:34 am
Hi People,
I tried to get the value of the registry entry Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Word.Application\CurVer (Default) with this command:
But not sure how to get the returned value?
Thanks in advance.
I tried to get the value of the registry entry Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Word.Application\CurVer (Default) with this command:
Code: Select all
Get-ItemProperty -Path 'HKLM:Software\Classes\Word.Application\CurVer'.(default)
How to correct my Powershell script above?(default) : Word.Application.16
PSPath : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\Software\Classes\Word.Application\CurVer
PSParentPath : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\Software\Classes\Word.Application
PSChildName : CurVer
PSDrive : HKLM
PSProvider : Microsoft.PowerShell.Core\Registry
Thanks in advance.