- Aug
- 2,016
- 81
When I use @EXETYPE on a .DLL, it returns 6, regardless if it is 32-bit or 64-bit;
As @EXETYPE is meant to only return the application type for an .EXE, not a .DLL, another method must be used.
Using the get-peheader from the PowerShell Community Extensions, I can now see if a .DLL is 32-bit or 64-bit.
See Also: File 64 or 32Bit?
Joe
Code:
c:\users\jlc\utils>echo %@exetype[ISO8601-x64.dll]
6
c:\users\jlc\utils>echo %@exetype[ISO8601.dll]
6
As @EXETYPE is meant to only return the application type for an .EXE, not a .DLL, another method must be used.
Using the get-peheader from the PowerShell Community Extensions, I can now see if a .DLL is 32-bit or 64-bit.
Code:
c:\users\jlc\utils>pshell /s "$a = get-peheader ISO8601-x64.dll; $a.type"
PE64
c:\users\jlc\utils>pshell /s "$a = get-peheader ISO8601.dll; $a.type"
PE32
See Also: File 64 or 32Bit?
Joe