mirror of
https://github.com/PowerShellMafia/PowerSploit
synced 2026-06-08 12:13:33 +00:00
Removed ValueFromPipeline from the Path param.
That parameter attribute doesn't make sense in this context.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user