"VersionInfo" property works differently under x86 and x64


mighty all!

i'm stuck trying figure out why

"(get-childitem -path $env:windir\system32\macromed\flash\*.exe | % {(($_.versioninfo).fileversion).replace(",",".")}|measure -maximum).maximum"

works ok on x86 system whereas

"(get-childitem -path $env:windir\syswow64\macromed\flash\*.exe | % {(($_.versioninfo).fileversion).replace(",",".")}|measure -maximum).maximum"

fails on x64 system "input object not numeric"??

any appreciated!!

ha! found reason: x64 systems on ps v2, whereas x86 systems have ps v3...


Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

Group Policy Event ID 1058 Error Code 1326 (The user name or password is incorrect)

Suspicious event log Event ID: 4905

DCOM received error "2147746132" from...