Forum Discussion
mmiadmin
Mar 30, 2023Copper Contributor
Get file version Intune win32 app
Trying to get the file version of a specific application. I took the path to the binary file in the registry and add it to this script below. But it errors out Original Script $FileVersion = [Sy...
Apr 01, 2023
Shouldn't you specify an actual file for this? For example:
C:\Users\HarmVeenstra> [System.Diagnostics.FileVersionInfo]::GetVersionInfo("C:\windows\system32\ntdll.dll")
ProductVersion FileVersion FileName
-------------- ----------- --------
10.0.22621.1485 10.0.22621.1485… C:\windows\system32\ntdll.dll
C:\Users\HarmVeenstra> [System.Diagnostics.FileVersionInfo]::GetVersionInfo("C:\windows\system32\ntdll.dll")
ProductVersion FileVersion FileName
-------------- ----------- --------
10.0.22621.1485 10.0.22621.1485… C:\windows\system32\ntdll.dll