{"id":19664,"date":"2022-08-10T15:55:54","date_gmt":"2022-08-10T23:55:54","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/powershell\/?p=19664"},"modified":"2022-08-15T05:22:29","modified_gmt":"2022-08-15T13:22:29","slug":"archive-module-2-0-preview-2","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/powershell\/archive-module-2-0-preview-2\/","title":{"rendered":"Archive Module 2.0 Preview 2"},"content":{"rendered":"<p dir=\"auto\">We are excited to announce that the second preview of a rewrite of <a href=\"https:\/\/www.powershellgallery.com\/packages\/Microsoft.PowerShell.Archive\" rel=\"nofollow\">Microsoft.PowerShell.Archive<\/a>, the module that lets you create and extract archives, is now available on the PowerShell Gallery.<\/p>\n<p dir=\"auto\">This release is the second preview release of a rewrite of the module and is not feature complete. Please note that this release is only compatible with PowerShell 7.3.0-preview5 and up. For more information on what is proposed in this rewrite, or to give feedback on the design please refer to the <a href=\"https:\/\/github.com\/PowerShell\/Microsoft.PowerShell.Archive\/pull\/117\/files\">RFC<\/a>.<\/p>\n<h2 dir=\"auto\"><a id=\"user-content-installing-the-module\" class=\"anchor\" href=\"https:\/\/github.com\/PowerShell\/PowerShell-Blog\/blob\/fcc404a2a3db5a6ebb27830f9635f8d0c016677c\/Posts\/2022-08-10-Archive-Preview2.md#installing-the-module\" aria-hidden=\"true\"><\/a>Installing the module<\/h2>\n<p dir=\"auto\">Please note that this release will only work with PowerShell 7.3.0-preview5 and up. Find and install the latest preview version of PowerShell\u00a0<a href=\"https:\/\/github.com\/PowerShell\/PowerShell#get-powershell\">here<\/a>.<\/p>\n<p dir=\"auto\">To install the Microsoft.PowerShell.Archive 2.0 preview 2 using PowerShellGet 2.2.5 run the following command<\/p>\n<p dir=\"auto\"><code>Install-Module Microsoft.PowerShell.Archive -AllowPrerelease<\/code><\/p>\n<p dir=\"auto\">To install the Microsoft.PowerShell.Archive 2.0 preview 2 using PowerShellGet 3.0 previews run the following command<\/p>\n<p dir=\"auto\"><code>Install-PSResource Microsoft.PowerShell.Archive -Prerelease<\/code><\/p>\n<h2 dir=\"auto\"><a id=\"user-content-features-of-the-release\" class=\"anchor\" href=\"https:\/\/github.com\/PowerShell\/PowerShell-Blog\/blob\/fcc404a2a3db5a6ebb27830f9635f8d0c016677c\/Posts\/2022-08-10-Archive-Preview2.md#features-of-the-release\" aria-hidden=\"true\"><\/a>Features of the release<\/h2>\n<p dir=\"auto\">This release contains the rewrite of the\u00a0<code>Expand-Archive<\/code>\u00a0cmdlet.<\/p>\n<p dir=\"auto\">This cmdlet contains two parameter sets<\/p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\">\n<pre class=\"notranslate\"><code>Expand-Archive [-Path] &lt;string&gt; [[-DestinationPath] &lt;string&gt;] [-WriteMode {Create | Update | Overwrite}] [-PassThru] [-Filter &lt;string[]&gt;] [-WhatIf] [-Confirm] [&lt;CommonParameters&gt;]\r\n\r\nExpand-Archive [-LiteralPath &lt;string&gt;] [-DestinationPath] &lt;string&gt;]  [-WriteMode {Create | Update | Overwrite}] [-PassThru] [-Filter &lt;string[]&gt;] [-WhatIf] [-Confirm] [&lt;CommonParameters&gt;]\r\n<\/code><\/pre>\n<\/div>\n<p dir=\"auto\">Some features to note of this release<\/p>\n<ul dir=\"auto\">\n<li>Added\u00a0<code>-WriteMode<\/code>\u00a0parameter to\u00a0<code>Expand-Archive<\/code><\/li>\n<li>Added support for zip64<\/li>\n<li>Fixed a bug where the entry names of files in a directory would not be correct when compressing an archive<\/li>\n<\/ul>\n<h2 dir=\"auto\"><a id=\"user-content-features-of-the-next-release\" class=\"anchor\" href=\"https:\/\/github.com\/PowerShell\/PowerShell-Blog\/blob\/fcc404a2a3db5a6ebb27830f9635f8d0c016677c\/Posts\/2022-08-10-Archive-Preview2.md#features-of-the-next-release\" aria-hidden=\"true\"><\/a>Features of the next release<\/h2>\n<p dir=\"auto\">The next release will focus on additional features of the module. To track the progress of this release, look at\u00a0<a href=\"https:\/\/github.com\/PowerShell\/Microsoft.PowerShell.Archive\/projects\/3\">this project<\/a>\u00a0in our GitHub repository.<\/p>\n<h2 dir=\"auto\"><a id=\"user-content-giving-feedback-and-getting-support\" class=\"anchor\" href=\"https:\/\/github.com\/PowerShell\/PowerShell-Blog\/blob\/fcc404a2a3db5a6ebb27830f9635f8d0c016677c\/Posts\/2022-08-10-Archive-Preview2.md#giving-feedback-and-getting-support\" aria-hidden=\"true\"><\/a>Giving Feedback and Getting support<\/h2>\n<p dir=\"auto\">While we hope the new implementation provides a much better user experience, there are bound to be issues. Please let us know if you run into anything.<\/p>\n<p dir=\"auto\">If you encounter any issues with the module or have feature requests, the best place to get support is through our <a href=\"https:\/\/github.com\/PowerShell\/Microsoft.PowerShell.Archive\/issues\">GitHub repository<\/a>.<\/p>\n<p dir=\"auto\">Sydney<\/p>\n<p dir=\"auto\">PowerShell Team<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We are excited to announce that the second preview of a rewrite of Microsoft.PowerShell.Archive, the module that lets you create and extract archives, is now available on the PowerShell Gallery. This release is the second preview release of a rewrite of the module and is not feature complete. Please note that this release is only [&hellip;]<\/p>\n","protected":false},"author":2299,"featured_media":13641,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[3185],"class_list":["post-19664","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-powershell","tag-archive-module"],"acf":[],"blog_post_summary":"<p>We are excited to announce that the second preview of a rewrite of Microsoft.PowerShell.Archive, the module that lets you create and extract archives, is now available on the PowerShell Gallery. This release is the second preview release of a rewrite of the module and is not feature complete. Please note that this release is only [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts\/19664","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/users\/2299"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/comments?post=19664"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts\/19664\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/media\/13641"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/media?parent=19664"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/categories?post=19664"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/tags?post=19664"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}