Simple FTP Get Powershell script

Follow

   

### Import the JAMS module
Import-Module JAMS 

### Set Error Action preference to Stop on error
$ErrorActionPreference = "Stop"

### Define Credentials from a JAMS user
$CachCredential = Get-JAMSCredential FTPUSER


### Connect to the server
$RCCach = Connect-JFTP 111.11.1.11 -Credential $CachCredential


### Receive the File
Receive-JFSItem /DefaultSite/users/*.x937 \\corp01\In\*.tmp -FileServer $RCCach -Verbose 

### Disconnect from the server
Disconnect-JFS -FileServer $RCCach

  

Additional arguments for each cmdlet can be found using "Get-Help CmdletName" 


Have more questions? Submit a request

Comments