Powershell System.IO.Compression.FileSystem.dll 오류(2)
Powershell에서 System.IO.Compression.FileSystem.dll을 사용할때 아래와 같은 오류가 발생한다면,
Add-Type : 유형을 추가할 수 없습니다. 'system.io.compression.filesystem' 어셈블리를 찾을 수 없습니다. |
아래의 소스 코드를 수정합니다.
수정 전
Add-Type -assembly "system.io.compression.filesystem" |
수정 후
Add-Type -Path "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\System.IO.Compression.FileSystem.dll" |
수정 후 명령을 다시 실행해보면, 아래와 같이 잘 실행됩니다.