Added position to params of 'Import-Excel'

This commit is contained in:
DarkLite1
2017-08-22 08:48:20 +02:00
parent 662d5913ae
commit e42fa83043

View File

@@ -237,10 +237,10 @@ Function Import-Excel {
[CmdLetBinding(DefaultParameterSetName)]
Param (
[Alias('FullName')]
[Parameter(ValueFromPipelineByPropertyName, ValueFromPipeline, Mandatory)]
[Parameter(ValueFromPipelineByPropertyName, ValueFromPipeline, Position=0, Mandatory)]
[ValidateScript({Test-Path -Path $_ -PathType Leaf})]
[String]$Path,
[Parameter(Mandatory)]
[Parameter(Position=1, Mandatory)]
[Alias('Sheet')]
[String]$WorksheetName,
[Parameter(ParameterSetName='B', Mandatory)]