Setup automated Powershell to upload files to a remote ftp server with ssl

Thanks in advance for the advice!
I need to create a script to upload a file to a remote server to transfer some large files, and I've been reviewing some methods needed, and have a few questions.
Is there a best practice for sending large files? 
Is the webrequest or put commands better to use?
This will be the first time we use Powershell on this server.   Should I change the executive policy on the server or should I change it in the script when running for security purposes?   This is a data warehouse therefore our strategic
data is else where but want to make sure everything is secure as possible.
I am able to run something similar on my laptop which works but when I try it on the server it is blocked.   I'm assuming I'll have to open up port 22 for this application to work.   How can I confirm that this is the port Powershell
needs open for these transfers. 
Any references to learning links appreciated since I'm new to Powershell.
Thanks!

Sorry but we cannot help you with this.  We suggest you contact a support tech or consultant to help you set up your system.
Start by learning how PowerShell works and how to set it up. As fro the SSL you will need to postyourscript with any issues and errors.
Start here:
http://technet.microsoft.com/en-us/scriptcenter/dd793612.aspx
¯\_(ツ)_/¯

Similar Messages

  • Rename and move files on remote FTP server

    Hello,
    We have a scenario where XI transfers a file to a remote FTP server at partner end using File Receiver Communication channel.
    These files are huge,so there is a risk of picking up incomplete files at their end when XI is still writing the file on their server.
    Hence,we have decided to follow the approach which is already mentioned a number of times on SDN that XI would place a file with different name and in a different folder on partner's FTP server.
    This would then be renamed and moved to the required folder on the same server.
    This could easily be managed using a script at partner end but there are some problems when they are not able to do this.
    Is there a possibility to achieve this using 'Run OS command after Message Processing' in XI when Source and target folders both are on partner's FTP server?
    If yes,can anybody please provide code for such a script and corresponding setting for this parameter in XI Communication channel?
    Thanks a lot in advance.
    Best Regards,
    Shweta

    Hello,
    Thanks for the reply.
    But this has to be done in FTP session because the source and target directory both are on remote FTP server.
    Instead,in SAP documentation,I found a parameter :
    ftp.putSafe=YES|NO
    Use this specification to define whether a transferred file is first created with a temporary name and only renamed once the transfer is complete (YES), or whether it is created with its final name at the start of the transfer (NO). The latter case can lead to problems if an application on the FTP server accesses the file before the transfer is complete. If you specify YES, this problem is avoided because the file only becomes visible with the search name when the transfer is complete.
    The default value is NO.
    Doesn't it serve the same purpose?Do we still need to write scripts?
    I have tried to include this in Additional Parameters in Advanced Mode as:
    ftp.putSafe  YES
    but I can't check in test system whether it is really working or not.I would like to confirm if it helps.
    First of all,I would like to know if this setting works for XI3.0 SP17.
    Can anyone please help.
    Thanks.
    Regards,
    Shweta

  • Upload File to a remote Server

    Hi all,
    i have a requirement like, i have to upload files to a remote server through SFTP. need help regarding this. i dont know where to start.
    Thanks.

    Do you need to do this from within a program(of your own writing)?
    Just filtering the obvious, but if you can use an existing SFTP program for your needs, do.
    That being said, while Java does excel at automation, I don't know if it goes as far as giving you ready-made SFTP. More likely, you're going to have to either:
    1. Learn the SFTP protocol and implement it yourself using sockets.
    or
    2. Find a ready-made Java package for using SFTP. It's not too unlikely someone somewhere made one for whatever purpose. You'll, of course, be bound by whatever license said someone released said package under.
    Regardless of which of the above you choose, you're going to have to start with Google. Either search for a description of SFTP, or for a Java package for SFTP.

  • I have uploaded files. how do I share them with my  team?

    I have uploaded files. how do I share them with my  team?

    Hi,
    Here are instructions for using Adobe Send to share files that you have uploaded: Acrobat.com Help | Using Adobe Send
    If you are not a PDF Pack or Adobe Send subscriber, you can create Anonymous (previously known as Public) links and share those.

  • Regarding receiver FILE adapter,  REMOTE FTP server

    Hi All,
    The scenario was to get XML file from a local FTP server and to place that XML file in REMOTE FTP server, which we dont have any control over that REMOTE FTP,
    While executing the scenario it is successfully picked the file and processed and it was success in SXMB_MONI, but when we see the Communication Chaneel of the receiver adapter it is generating the following error..
    Error when getting an FTP connection from connection pool: com.sap.aii.af.service.util.concurrent.ResourcePoolException: Unable to create new pooled resource: ConnectException: Connection timed out: connect
    Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Error when getting an FTP connection from connection pool: com.sap.aii.af.service.util.concurrent.ResourcePoolException: Unable to create new pooled resource: ConnectException: Connection timed out: connect
    clarifications needed ASAP
    regards,
    Kishore.

    Hi,
    Verify the Host details of the Remote FTP.
    Try to ping the Remote host as below
    Goto > start>Run --->type cmd and give the command as below
    c:\>ping <host details or IP address> press enter and see if you get the successful communication response.
    If its not it indicates that the connection is not setup.
    Ask you FTP administrators to look into connectivity issue for it.
    Thanks
    Swarup

  • XML File Creation Problem in FTP Server

    Hi.. Experts
    My Internal Table is as follows
    Types: Begin of ty_xmlfile,
             xmlline(60000)        type C,
           End of ty_xmlfile.
    Data: it_xmlfile type standard table of ty_xmlfile,
            wa_xmlfile type ty_xmlfile.
    When I download the file to my desktop using  GUI_DOWNLOAD. It works fine
    CALL FUNCTION 'GUI_DOWNLOAD'
              EXPORTING
                BIN_FILESIZE = lv_size
                FILENAME     = lv_file_name
                FILETYPE     = 'ASC'
              TABLES
                DATA_TAB     = it_xmlfile
              EXCEPTIONS
                OTHERS       = 10.
            IF SY-SUBRC <> 0.
              MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
            ENDIF.
    In the debug mode when I download the internal table(IT_XMLFILE) into an excel file it doesn't open and it says tag is missinig(/basic_material_text) and also when I create the file in Application Server and transfer it to FTP Server it doesn't open there..and also in debug mode I find the length until  DIMENSION AN.. for that row when I double click on that line in debug mode it shows all the text until </baisc_material_Text>
    <basic_material_text>4.500 +.000/-.010 O.D. X 213.0&quot; LG.(F)                      (A)ASTM A276 CONDITION &quot;A&quot; 317LTYPICAL MILL CERTS REQ&apos;D.DIMENSION REFERENCE:(A) = ALLOWANCE IS INCLUDED FOR MACHINING(F) = THIS IS A FINISHED DIMENSION AN*
    The above statement is incomplete when the file is open in FTP Server.
    But when the file is created on to my desktop. It displays all the text....
    <basic_material_text>4.500 +.000/-.010 O.D. X 213.0" LG.(F) (A)ASTM A276 CONDITION "A" 317LTYPICAL MILL CERTS REQ'D.DIMENSION REFERENCE:(A) = ALLOWANCE IS INCLUDED FOR MACHINING(F) = THIS IS A FINISHED DIMENSION AND WILL BE USED AS RECEIVED(T) = TO FINISH TO THIS DIMENSION FOR FORGING AND BILLET MATERIAL ONLYVENDOR TO SUPPLY THE FOLLOWING ENGINEERING/QUALITY ASSURANCE DATATYPICAL MILL TEST CERTIFICATES/CERTIFICATES MUST ACCOMPANY THE MATERIAL.* COPIES REQUIRED:(2)ALL CERTIFICATES MUST HAVE LIGHTNIN PART NO.CLEARLY MARKED ON THEM.* COPIES REQUIRED:(2)</basic_material_text> *
    I could not understand why it takes only until DIMENSION AN
    Any suggestions would be very helpful...
    Thanks,
    Chaitanya
    -Points will be awarded for helpful answers.

    Hi...
    I think each XML Line will be of length 256. So I have to split the String into 256 of each Line.
    XML DOM Processing in ABAP part I -  Convert an ABAP table into XML file using SAP DOM Approach.
    Hope  it works out....I will try for that and Close the Post...
    Thanks,
    chaitanya K

  • Automate a BI report to flat file on to a FTP server.

    Hello all,
    I have an same issue like the following thread. After extract CSV file successfully to the directory, but unable to find the file. Any thought?
    Automate a BI report to flat file on to a FTP server.
    Regards!

    Need to analyze the business purpose ,however heres my take on it..
    You can utilize 3 options to export query result on to the SAP directories as below and map that path to your FTP server.
    1. Transaction RSCRM_BAPI (still valid in nw2004s)
    2. Transaction RSANWB (analytical Process designer)
    3. Information Broadcasting - KM folder has to be mapped as a file system location.
    Hope it Helps
    Chetan
    @CP..

  • Just upgraded  iWeb app to version 3.0.4 from an iLife 11 disk. I like some of the newer features but it seems to have one glitch: when I upload the pages to my ftp server, the automatic navigation bar at the top of the page disappears. Any ideas?

    Just upgraded my old iWeb app to version 3.0.4 from an iLife 11 disk. I like some of the newer features but it seems to have one glitch: when I upload the pages to my ftp server, the automatic navigation bar at the top of the page disappears. Any ideas? Thanks.

    Looks like a couple scripts are missing:
    If you republish the entire site iWeb should recreate these for you...
    I don't use the built-in navigation. I usually just create my own:
    http://jeffnitschke.com/Home.html

  • Upload file to SharePoint via FTP

    Hi,
    Is it possible to setup an FTP to access or upload file to SharePoint?
    We're using SharePoint Foundation 2010 as repository of files and one of the requirement is to upload files using FTP.
    I tried to mapped the document library to the server and created an FTP site and point to that drive but no luck to connect to the FTP using client FTP tool (FileZilla).
    Thanks 

    SharePoint does not use FTP, does not have FTP built into it, and does not listen for FTP requests.
    You can use WebDAV for file uploads, or other programmatic means to upload files.
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Uploading files from web to db server

    hi, yesterday discover article from otn about uploading file from clients filesystem to web application server.
    but how about uploading from clients filesystem directly into database column? (i'm talking about forms application via web server, btw, not c/s app)
    i've search through the archieve, but cant find anything useful, just alot of similar question with no useful answer. so i guess alot of people could use this feature, if it can be done.
    thanks in advance
    Phil

    The demo titled "Forms, Reports, and Portal Integrated Demo"
    has the package and a form using it.
    You can download it from http://technet.oracle.com/sample_code/products/forms/content.html
    Read the script and search the part where you upload an image.

  • Interface Mngr: Option for Uploading file from presentation or unix server

    Hi all,
      I want to upload file through interface manager where the file can be on the presentaion server or the unix server. How do i achieve the same? I need to create parameters for 'Filename' and 'Unix Filename'. Either of the 2 will be chosen at a time. But how do i retrieve the respective file?

    Hi!
    For handling a file on the apllication server (unix), you have to use the OPEN DATASET, CLOSE DATASET commands.
    For handling the files on the presentation server (local PC), you have to use the upload/download method (GUI_UPLOAD, GUI_DOWNLOAD function elements).
    You can make 2 parameters in your ABAP program like this:
    PARAMETERS: p_f_app LIKE rlgrap-filename.
    PARAMETERS: p_f_pre LIKE rlgrap-filename.
    both is filled - error
    IF NOT p_f_app IS INITIAL AND
    NOT p_f_pre IS INITIAL.
    MESSAGE E001(ZERROR).
    ENDIF.
    both is empty - error
    IF p_f_app IS INITIAL AND
    p_f_pre IS INITIAL.
    MESSAGE E002(ZERROR).
    ENDIF.
    IF NOT p_f_app IS INITIAL.   "application server
    open dataset...
    ENDIF.
    IF NOT p_f_pre IS INITIAL.   "presentation server
    call function 'gui_upload'...
    ENDIF.
    Regards
    Tamá

  • Transfer file to an external FTP SERVER

    HI Gentelemen!!,
    I'm trying to open an external FTP connection, sending a file from the  MiniSAP.
    Which is the appropiate RFC connection that I have to use??
    Anybody know how to set RFC connection to access an external FTP server.
    This are the MF that I use:
    CALL FUNCTION 'SCRAMBLE_STRING'
    To encrypt password
    CALL FUNCTION 'FTP_CONNECT'
    here i have an import value for RFC DESTINATION
    return handle - I use it to close the connection
    CALL FUNCTION 'FTP_COPY'
    CALL FUNCTION 'FTP_DISCONNECT'
    Use HANDLE numbre to close the connection
    Thanks for your help.
    POLAK.-

    I am not sure minisap has sapftp and sapftpa executable.
    Anyway the two RFC destination used to do FTP are SAPFTPA and SAPFTP. This are 2 TCP/IP RFC destination (Type T) that launch either the program sapftp or sapftpa on the application server.
    If these rfc destination are not setup in transaction SM59 you can try to define them but it might not work on minisap.
    Regards

  • Upload form problems on Mac web server with PHP

    First time using a mac web server and I'm having a heck of a time getting a simple upload form to work in this environment. The errors I'm receiving are:
    Warning: move_uploaded_file(/Library/WebServer/Documents/mydirectory/content/mwm/) [function.move-uploaded-file]: failed to open stream: Is a directory in /Library/WebServer/Documents/mydirectory/umin/uploadContent.php on line 66
    Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/private/var/tmp/php1pRrx5' to '/Library/WebServer/Documents/mydirectory/content/mwm/' in /Library/WebServer/Documents/mydirectory/umin/uploadContent.php on line 66
    Usually this problem is resolved by changing permissions on the directory receiving the upload. I've already done that, and set the permissions to 777, though the problem still persists.
    I'm basically defining my upload directory, and then moving the file thereafter:
    define('UPLOAD_DIR', '/Library/WebServer/Documents/mydirectory/content/'. $category . '/');
    move_uploaded_file($_FILES['uploadedFile']['tmp_name'], UPLOAD_DIR);
    The rest of the script, without the move execution, works properly. Any help would be appreciated.
    Message was edited by: LoopyChicken

    BAH!
    I had forgotten to add the name of the file to the move command:
    Fix here:
    move_uploaded_file($_FILES['uploadedFile']['tmp_name'], UPLOAD_DIR.$file);
    Thanks.

  • Upload PDF to DMS using FTP server in WD abap

    Hi Friends,
        I want to upload PDF file from presentation server to DMS. As I dont want application server in this regards , so am using FTP server instead. But the problem am facing is in WD abap the filepath is in  XSTRING format. So how to upload Xstring pdf file in FTP server and how can i pull the same data to DMS server.
        My problem is just how to upload PDF in FTP server using web dynpro abap. The FM 'BAPI_DOCUMENT_CREATE2'  will upload the same PDF file from FTP to DMS server.
    Regards,
    Santosh

    Hi Santosh,
    Are you using FILE UPLOAD UI Element or not?
    Please go through this.. it might helps
    Re: File Upload Using BAPI
    /people/shruti.rathour/blog/2008/02/07/uploading-sap-interactive-form-on-the-abap-webdynpro-view
    Re: FTP_CONNECT failed for SAPFTP from WD4A to external Server
    Cheers,
    Kris.
    Edited by: kissnas on May 3, 2011 7:15 AM

  • Encore CS4 problem uploading flash streams to remote ftp in build

    Hi
    I'm working on a windows XP and trying to upload to my my remote server which has a new install of the Adobe Flash Streaming Media Server 3.5
    as for Encore
    under build when creating a streaming flash I can't log into my ftp site, only to local folder.
    I created a link to my ftp site under networks, when trying to link to this FTP Encore won't accept it.
    no problem creating flash progressive downloads but impossible to upload the streaming version.
    progressive is really not the desired output.
    how can I log onto the ftp site?
    thanks in advance
    Klaus

    If FTP still doesnt work for you, please try uploading videos to FTP server without using Encore (try windows FTP or a FTP client). If you cannot upload videos anyway, the problem could be with FTP server configuration.
    Following are the steps to setup your streaming server. (Steps are for Microsoft IIS FTP server on WinXP. You can use another server also)
    1. You have to install a Flash Media Server 3.5 and a FTP server for this. FMS 3.5 free developer edition can be downloaded from www.adobe.com
    2. Install IIS on winXP from Add/Remove Programs > Add/Remove Windows Components (You may need a windowsXP installation DVD)
    3. Configure FTP server to point to "\Flash Media Server 3\applications\vod\media" folder
        (FTP server can be configured from IIS window in Control Panel > Administrative Tools> IIS. Right click Default FTP site > Properties > Home Directory Tab > Set Local Path to "FMS3\applications\vod\media\media" folder)
    4. Encore streaming script for the server will still point to "\Flash Media Server 3\applications\vod" and not to Media folder inside Vod. (For example, if FMS server name is amgupta, FLV streaming location will be "rtmp://{FMServerName}/vod/" 
    5. Encore streaming script should be updated at 2 places with the new server names. ("rtmp://FMSservername/vod/flv:" and ftp://FTPservername ). The script is located at "X\Adobe Encore CS4\Required\flashExportScript\localFMS.jsx" where X is the install location of Encore CS4)
    Hope this works. 

Maybe you are looking for