From 3eb838eb1e4360b0aeb103fd161db2c240169f9b Mon Sep 17 00:00:00 2001 From: bitform Date: Sat, 19 Jan 2013 16:01:01 -0500 Subject: Removed ValueFromPipeline from the Path param. That parameter attribute doesn't make sense in this context. --- Out-EncodedCommand.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Out-EncodedCommand.ps1') 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, -- cgit v1.2.3