Closed ChrisLynchHPE closed 3 years ago
Docs says that -Force
suppresses confirmation.
Yep, another command that chose to use -Force
instead of a common parameter for prompts. Makes you wonder why they even bothered to implement ShouldProcessing
. 😔
Except -Force
doesn't work either. I tried that. Same result.
@ChrisLynchHPE not to be bunting you all over the place, but as far as I recall the *-Archive cmdlets aren't managed in this repo; I think they live in the Microsoft.PowerShell.Archive repo; you'd need to file the issue there.
With any luck, @romero126 might be able to sneak that fix in before / after he gets his major work sorted out there, assuming there's still interest in developing that module further...
I believe that whole Function is planned to get an overhaul soon.
Which would be better use of cycles? Fix a bug or release a future facing feature?
Im actually curious.
Also This bug should be in Microsoft.Powershell.Archive repository.
I ask MSFT team without answer https://github.com/PowerShell/Microsoft.PowerShell.Archive/issues/19#issuecomment-610500841
This issue has been marked as answered and has not had any activity for 1 day. It has been closed for housekeeping purposes.
@romero126 Sorry for the late reply here. If working on a new feature to this Cmdlet fixes the issue, to me it doesn't matter. As long as it is fixed.
Steps to reproduce
Using the following command will prompt you to confirm the creation of sub-directories if they exist within the ZIP (like a Hyper-V VM template in ZPI form)
Expected behavior
When using
Expand-Archive
, the Cmdlet should honor the use of-Confirm:$false
, especially when creating directories that do not exist.Actual behavior
When passing the
-Confirm:$False
parameter, the user is prompted for confirmation to create the destination directory, or any embedded child directory within the ZIP archive.Environment data
Windows 10, 1909