Extracting .exe file using powershell

Question:

I am trying to extract .exe file using powershell without any other tools.

I tried to use System.IO.Compression.ZipFile, but that works only for .zip files..

Also tried this, but without any success

Tried also this but once again without any succes

Thanks for help.

Answer:

If you have tried

Then it is not possible using powershell, this command is completely dependant on how the file was packaged, if all else fails I personally would use a utility like 7-Zip, but as you said you would not like to use utilities.

Source:

Extracting .exe file using powershell by licensed under CC BY-SA | With most appropriate answer!

Leave a Reply