diff options
-rw-r--r-- | Out-EncodedCommand.ps1 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Out-EncodedCommand.ps1 b/Out-EncodedCommand.ps1 index 72d47e8..a27e0fb 100644 --- a/Out-EncodedCommand.ps1 +++ b/Out-EncodedCommand.ps1 @@ -71,12 +71,12 @@ http://www.exploit-monday.com #>
[CmdletBinding( DefaultParameterSetName = 'FilePath')] Param (
- [Parameter(Position = 1, ValueFromPipeline = $True, ParameterSetName = 'ScriptBlock' )]
+ [Parameter(Position = 0, ValueFromPipeline = $True, ParameterSetName = 'ScriptBlock' )]
[ValidateNotNullOrEmpty()]
[ScriptBlock]
$ScriptBlock,
- [Parameter(Position = 1, ValueFromPipeline = $True, ParameterSetName = 'FilePath' )]
+ [Parameter(Position = 0, ParameterSetName = 'FilePath' )]
[ValidateNotNullOrEmpty()]
[String]
$Path,
|