Differences

This shows you the differences between the selected revisions of the page.

2016-07-29 2016-10-12
grammar (martin) explicit value to switch parameter argument for compatibility with PowerShell 2 (martin)
Line 38: Line 38:
param ( param (
    # Mandatory parameters     # Mandatory parameters
-    [Parameter(Mandatory)]+    [Parameter(Mandatory = $True)]
    $sessionUrl,     $sessionUrl,
-    [Parameter(Mandatory)]+    [Parameter(Mandatory = $True)]
    $remotePath,     $remotePath,
    # Optional parameter with a default value     # Optional parameter with a default value
Line 61: Line 61:
<code powershell> <code powershell>
param ( param (
-    [Parameter(Mandatory)]+    [Parameter(Mandatory = $True)]
    $sessionUrl     $sessionUrl
) )

Last modified: by martin