Differences

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

2016-07-29 2016-10-12
removing beta tag (martin) explicit value to switch parameter argument for compatibility with PowerShell 2 (martin)
Line 34: Line 34:
    # Use Generate URL function to obtain a value for -sessionUrl parameter.     # Use Generate URL function to obtain a value for -sessionUrl parameter.
    $sessionUrl = "sftp://user:mypassword;fingerprint=ssh-rsa-xx-xx-xx@example.com/",     $sessionUrl = "sftp://user:mypassword;fingerprint=ssh-rsa-xx-xx-xx@example.com/",
-    [Parameter(Mandatory)]+    [Parameter(Mandatory = $True)]
    $remotePath,     $remotePath,
    [Switch]     [Switch]
Line 43: Line 43:
    $path7zip = "C:\Program Files\7-Zip\7z.exe",     $path7zip = "C:\Program Files\7-Zip\7z.exe",
    $archive7zip = "zip",     $archive7zip = "zip",
-    [Parameter(Mandatory)]+    [Parameter(Mandatory = $True)]
    $archiveName,     $archiveName,
    $sessionLogPath = $Null,     $sessionLogPath = $Null,
-    [Parameter(Mandatory, ValueFromRemainingArguments, Position=0)]+    [Parameter(Mandatory = $True, ValueFromRemainingArguments = $True, Position·=·0)]
    $localPaths     $localPaths
) )

Last modified: by martin