Closed
Description
When expanding zip file with -DestinationPath parameter, cmdlet is throwing error - see below for detailed error message.
My environment is Windows 10 x64 (build 16299).
F:\1> Expand-Archive -Path abc.zip -DestinationPath f:\1\temp
Expand-Archive : A parameter cannot be found that matches parameter name 'DestinationPath'.
At line:1 char:32
+ Expand-Archive -Path .\abc.zip -DestinationPath f:\1\temp
+ ~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Expand-Archive], ParameterBindingException
+ FullyQualifiedErrorId : NamedParameterNotFound,Pscx.Commands.IO.Compression.ExpandArchiveCommand
F:\1> Expand-Archive -LiteralPath f:\1\abc.zip -DestinationPath f:\1\temp
Expand-Archive : A parameter cannot be found that matches parameter name 'DestinationPath'.
At line:1 char:42
+ Expand-Archive -LiteralPath f:\1\abc.zip -DestinationPath f:\1\temp
+ ~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Expand-Archive], ParameterBindingException
+ FullyQualifiedErrorId : NamedParameterNotFound,Pscx.Commands.IO.Compression.ExpandArchiveCommand
Metadata
Metadata
Assignees
Labels
No labels