Powershell - Need to push a file to a remote machine (not in domain or workgroup)

Scenario
HomeComputer
MyCloudServer
No WorkGroup or Domains between the 2
All I need to do is push a file from my local machine 'HomeComputer' to 'MyCloudServer'.  What is the best way to do this?
If I use Invoke and -ConnectUri my session is on the remote so Copy-Item only works for items already on 'MyCloudServer'.  I want to push the file from my desktop to this server.  I have all the rigts necessary to the box. 
I tried start-BitsTransfer but can't seem to get that working
Start--BitsTransfer D:\Testfile.txt
https://MyCloudServer.net:5986/testFolder/testFile1.txt -transferType Upload -Authentication "" -Credential ""
I get the requested URL does not exist on the server.  Which makes sense since testfile1.txt doesnt exist yet.  I'm trying to upload it right?? 
What is the best method for transferring a file with powershell to remote computer not in a workgroup or domain?  Preferrably through IP I would think.  


It's Azure  and they have specific ports on the VM's called endpoints for allowing remote connections.  By default the endpoint for powershell is setup out of box on Windows Servers.  I believe the port is 5986.  I've been able to connect
using this port with powershell and have been able to manage resources remotely through powershell. I'm looking for help pushing a file through some kind of copy process in Powershell to the remote server.  Is this not possible?? 

Similar Messages

  • I need to drag a file from my time machine backup to a usb

    I need to drag a file from my time machine backup to a usb

    You can restore it to the original location as a copy, if you have a newer version there that you want to keep. So Restoring a file from TM won't over-write a newer file.

  • Getting absolute path of a file running in remote machine

    Hi,
    I want to get the absolute path of a file that will be created in the remote server. Inside a directory XYZ in remote machine, the file will be created and the remote machine's address is xxx.xx.x.x. I have used the following snippet
    File f=new File(Filename);
    f.getAbsolutePath();
    Now, in the output am getting the absolute path of the file as d:/XYZ/Filename. Is there any way to get the output as xxx.xx.x.x/XYZ/FileName ? Can someone please suggest why the server details are not fetched and instead the directory name is fetched.
    I am running the program to get absolute path of a file in my remote machine. and for accessing that remote file from my machine, I use xxx.xx.x.x/XYZ/FileName.
    Thanks in advance.

    I'm going to take it a step further and guess at what the OP is going to say next.
    On host w.x.y.z there's a file /a/b/share/some_dir/file.txt.
    Host w.x.y.z is sharing the /a/b/share/ directory as SHARE.
    Client mounts \\w.x.y.z\SHARE as D:, so that he sees D:/some_dir/file.txt.
    OP now wants to know not just that D:/some_dir/file.txt is \\w.x.y.z\SHARE/some_dir/file.txt, but also wants to know that on w.x.y.z, SHARE corresponds to /a/b/share.
    @OP: If that's what you want, forget it. Part of the premise of file common drive/directory sharing protocols is that the client does not know or care and does not need to know or care what the absolute path is on the serving host. It's none of his business.

  • How to create a file on a remote machine using PrintStream

    I want to create an HTML file on a remote machine connect via LAN the path is "\\vineet\akh\" akh is folder where I want to save the HTML file. Now in PrintStream i can give only a local file. Please help how to do it

    .. You can do this in two ways!!
    1) easy way
    2) hard way
    1) EASY WAY
    .. as you know for write to a remote dir you must
    a) have shared remote dir
    b) have write permit on remote dir
    if you have point a) and b) the way to follow it's simple as the other user explained to you!!
    2) HARD WAY
    the hard way is to use RMI (Remote Method Invokation)
    i mean to create a service on a remote machine that give to you a remote method that make you write without share anything..!!!
    check it out
    http://tns-www.lcs.mit.edu/manuals/java-api-1.1beta2/guide/rmi/
    i hope i'm been clear!!
    SORRy My english!! (please)
    Alessandro

  • Copying Files From a Remote Machine through "rcp" command not working.

    Hi All,
    I'm a new comer to this famous forum. I was trying to go through the PDF "Solaris Advanced User's Guide" .So in chapter 9-"Using the network" i came across "Copying Files From a Remote Machine". And the syntax was "rcp machinename:source destination" . And i got another note. It is like
    "The rcp command enables you to copy files from one machine to another. This command uses the remote machine's /etc/hosts.equiv and /etc/passwd files to determine whether you have unchallenged access privileges. The syntax for rcp is similar to the command syntax for cp.".
    But i maintained remote machine's IP address in my system's /etc/hosts file. But still i am unable to do the rcp from remote system to my system or vice versa.
    Always i am getting error message " **Connection refused**".
    Therefore please some one guide me how to perform the " Copying Files From a Remote Machine" through rcp command.
    Reghards
    Kartik

    Hi
    The inconvenience of using scp is that you have to type the password every time you stablish a connection. You can work around this, adding a key into the remote hosts_allow file. This implies in more maintenance.
    From the rcp man page:
    +rcp does not prompt for passwords. It either  uses  Kerberos authentication which is enabled through command-line options or your current local user name must exist on  hostname  and allow remote command execution by rsh(1).+
    From the rsh man page:
    + If you omit command, instead of executing a single command, rsh logs you in on the remote host using rlogin(1).+
    By default, rlogin is disabled on Solaris 10
    [SunOS 5.10/bash] root@wgtsinf01:/store/sun/operating-systems
    # svcs -a|grep -i rlog
    disabled       May_11   svc:/network/login:rloginSo, to use rcp you have to enable the rlogin service and set up all the configuration files. Particularly, as already suggested, I too suggest you to use scp. :)
    Cheers
    -- Andreas
    Edited by: Bank_Of_New_Zealand on 15/06/2009 13:09

  • Psexec shows Access denied when i execute a .exe file on a remote machine

    Hi All,
    I am using Psexec application to run exe on multiple remote machines in the domain. When i run the the .EXE i get the error message saying access is denied.
    I am running this script against agents in a list.
    Below is the script i am running in the batch:
    "C:\Windows\system32\PsExec.exe" @C:\Test.txt cmd
    1. I am first connecting to the cmd of the remote computer and it connects successfully.
    2. When i enter the .exe file location on the command prompt (which is also in a shared drive but in the same domain).
    3. I ran the batch file as Run as administrator
    4. I am itself a member of the Domain admins and Administrators group of the domain.
    5. Turned off firewall on both sides.
    6. Turned off UAC fully as per the below MS article - http://technet.microsoft.com/en-us/library/cc709691(v=ws.10).aspx
    7. Pressed shift and right click so i will get the Run as option and mentioned different domain admins user account and password.
    Below is the screenshot for your reference: 
    Restated both the machines after doing these changes. But still the same issue.
    But still i get access is denied. Can anyone please help.
    Gautam.75801

    Few days back when i used to run the same task in this Access is denied mode its self. My destination server used to give a Audit failure event log as below.
    Now a days this event log does not come.
    Can this help for analysis.
    Subject:
    Security ID:
     Domain name\My username
    Account Name:
     Gautamr
    Account Domain:
    My Domain
    Logon ID:
     0x234992
    Object:
    Object Server:
    Security
    Object Type:
     File
    Object Name:
     C:\Windows\System32\eventvwr.msc
    Handle ID:
     0x0
    Process Information:
    Process ID:
     0x17e0
    Process Name:
     C:\Windows\System32\mmc.exe
    Access Request Information:
    Transaction ID:
    {00000000-0000-0000-0000-000000000000}
    Accesses:
     READ_CONTROL
    SYNCHRONIZE
    WriteData (or AddFile)
    AppendData (or AddSubdirectory or CreatePipeInstance)
    WriteEA
    ReadAttributes
    WriteAttributes
    Access Reasons:
    READ_CONTROL:
    Granted by
    D:(A;;0x1200a9;;;BA)
    SYNCHRONIZE:
     Granted by
    D:(A;;0x1200a9;;;BA)
    WriteData (or AddFile):
    Not granted
    AppendData (or AddSubdirectory or CreatePipeInstance):
    Not granted
    WriteEA:
     Not granted
    ReadAttributes:
    Granted by ACE on parent folder
    D:(A;;0x1301bf;;;BA)
    WriteAttributes:
    Not granted
    Access Mask:
     0x120196
    Privileges Used for Access Check:
    Restricted SID Count:
    0
    Gautam.75801

  • Writing a file to a remote location (not KM) using WD

    Hello everyone.
    I've encountred a scenario in which I need to upload an excel file to a km file and also load it into the sap system.
    I've managed to upload the file to the KM Server, but not I have a new problem:
    The abap function that loads the excel file into an Internal table (ASLM_EXCEL_TO_INTERNAL_TABLE), works on a local location.
    I cant supply the the function with the KM address, since the KM Server is firewalled and not every user which will work with my application will have access to it.
    However, I have another server - the SAP server which has an interface which every user can access, so I've come up with an idea - I still have the inputstream of the file which I wrote to the km server, and I will write it to another server, for example - 212.101.42.21\interface\my_folder and then I will supply the abap function with this location.
    Is this possible? if so, how can I use web dynpro to write to this server?
    thanks for any help,
    Eli Erenburg.

    Hi,
    Yes it will be possible.
    Java Classes help you write files to servers. Have a look at:
    http://www.java2s.com/Code/Java/File-Input-Output/UseNewJavaIOtowritestringintoafile.htm
    You can reuse the solution inside a bean and then expose that as a web service - finally consuming it in Web Dynpro Java. It may directly be reused in WDJ as well (as part of a method) - but then again that would be a design call.
    Hope that the link helps. I have used it to write local files to server.
    Thanks.
    p256960.

  • Extract data from Flat File in a remote machine

    Hi All,
        Can we extract the data from a flat file present in the Linux server ( same server having ODI installed ) and load it into the database. In most of the forms in the internet shows that the file is to be placed in the local client ( Eg:- C:/Flat_files/ ) .
    Any thoughts on this is possible. Please provide me some information on the same.
    Thanks and Regards,
    Krishna Prasad

    Many ways to do this. For example you could use sqlloader or a simple File to SQL and load from an agent used on the same machine of your file.
    If your agent is not on the same box as the flat file, you will need a shared drive. Or you can first move the file using FTP or something like that.
    Shared drive is quite easy but they are the evil. You'll need an everyone-read permission.
    Let us know

  • Can not sort the files in JFileChooser if the files are from remote machine

    Hi All,
    Let me set the context of the question.
    I have extended the JFileChooser to support the listing/view of files.dirs etc of remote location through CORBA.To achieve that i have customized
    my FileSystemView to support it. In general ,the current JFileChooser sorts the file when we have details view .My question is related to this.The default
    JFileChooser has the support for sorting but when i customized the FileSystemView,the sorting functionality is no more exist.I tried with TableRowSorter as well but
    the sorting can be achieved in View only,the model still remains same as initial.
    Any pointer towards this will be highly appreciated.
    Thanks
    Praveen

    Can anyone help me out to solve this problem or any suggestion regarding this ?
    Regards
    Praveen

  • HTML files uploading to remote server, not reflected on website.

    After minimal adjustments to an HTML file, I upload it to the remote server. The local and remote files reflect this in the "modified" line, both mirroring the same exact time. However, when I go to the actual site, the changes don't appear.
    Now, when I update the html file, say cv.html, it also makes the same changes to 2.html. When I click on the link on the website, it appears at 2.html. Somehow cv.html and 2.html are linked to each other. (I guess to keep the overall web address smaller)?
    I just took on this website to manage and I've already hit a million roadblocks trying to get it started on my end, so anyone that can solve this I would be SO grateful!

    Somehow cv.html and 2.html are linked to each other.
    Could be CV is being pulled into a framed parent page called 2.html.  Or maybe your previous web developer used server-side includes to populate page 2 with content from other site files. It's anybody's guess what may be going on until you provide us with more detailed information. A URL is preferred.  Copy & pasted code is a 2nd option but don't use e-mail, it won't come through to the web forum.
    Nancy O.

  • I want to store the Data Pump export files on a remote machine

    Hi,
    I have two database servers running, A and B. I want to kick off a cron job on A that takes a dump and stores it on a directory on B every night.
    Is this possible?
    Thanks.

    One other option might be to use the NETWORK_LINK parameter. Let's say you want the files of export from A to be created on the server where B resides. Create a database link from B to A, then run expdp from B using the network link pointing to A
    http://docs.oracle.com/cd/B19306_01/server.102/b14215/dp_export.htm#sthref142
    HTH
    Srini

  • .MOV Files playing on some machines not others

    Ok, so this morinig we are having an issue win which a file that will play on two of our macs will not play on any others via QT.  When I open with QT X, I get a dialogue suggesting the file is corrupt, when I open with QT7 I recieve the old "An invalid public movie atom was found in the movie".  On this machine, I can open these files via VLC and Handbrake, but not QT.  We have two other machines that can play them fine in QT, so I thought it was a missing codec issue. Comparing the Quicktime folders from both root->Library and root->Syatem->Library show that I have all of the same codecs installed, so that cannot be the issue.
    The files in question are from a Firestore capture drive, and have a .mov extension.
    Any help appreciated,
    -Will

    I'm having the same problem.  It must because of a recent QuickTime update.  I suspect the iTunes 10.5 update is the culprit.  I shoot with a FireStore (FS-C) and have 5 Macs that can no longer read any of the .mov files.  All the Macs (MacBook,Pro 8,3 / MacBookPro 8,2 / MacBookPro 5,2 / MacBookPro 2,2 / MacMini 4,1) are running 10.6.8 and all were capable of reading the FireStore files...until very recently.  The last footage I edited was on October 9th.  Somewhere between then and today (October 25th), an Apple update made the .mov files unopenable.  When I try to play the files in Final Cut Pro (7.0.3), I get a "General Error" message.
    I've installed VLC and the files will all play properly in the VLC player, so the files themselves are intact.
    UPDATE:  Yes, the problem stems from a recent QuickTime update.  This has been confirmed in the following support notice from VITEC:
    http://www.focusinfo.com/dynassets/documents/downloads/MACOSX_Supp_Anncmt_10.21. 11.pdf
    I'm going to try downgrading my installed QuickTime and I'll post the results.
    MattLTH

  • Getting error when reading xml file from a remote connection

    Hi all,
    I want to read an xml file from a remote connection, not from my local machine.So when i am creating the data server i am giving the host name(that is the ip of the machine where the xml file is located), giving the proper username and password and giving the path of the xml file. When i am testing the connection the error that is coming:- "Connection failed and the xml file could not be created, verify that you have write permission in the directory"...
    but read write and execute permissions have been given on the directory as well as to the file...
    Regards,
    Sourav

    Hi Sutirtha,
    Initially I have started the agent.sh giving the agent name <agent name>and port number 20910 and defined it in the topology manager it is showing that the agent test is succesful. Then I tested a particular Data server against that agent and the test was successful.
    After this we had stopped the agent and restarted it.
    However now suddenly the testing against the remote agent is failing with the following excep:
    java.lang.Exception:
         at com.sunopsis.graphical.l.pm.a(pm.java)
         at com.sunopsis.graphical.l.pm.s(pm.java)
         at com.sunopsis.graphical.l.pm.g(pm.java)
         at com.sunopsis.graphical.l.pm.a(pm.java)
         at com.sunopsis.graphical.l.pm.a(pm.java)
         at com.sunopsis.graphical.l.iz.actionPerformed(iz.java)
         at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
         at java.awt.Component.processMouseEvent(Unknown Source)
         at java.awt.Component.processEvent(Unknown Source)
         at java.awt.Container.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Window.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.Dialog$1.run(Unknown Source)
         at java.awt.Dialog.show(Unknown Source)
         at java.awt.Component.show(Unknown Source)
         at java.awt.Component.setVisible(Unknown Source)
         at com.sunopsis.graphical.l.pm.q(pm.java)
         at com.sunopsis.graphical.l.pm.<init>(pm.java)
         at com.sunopsis.graphical.frame.b.jh.bx(jh.java)
         at com.sunopsis.graphical.frame.bo.w(bo.java)
         at com.sunopsis.graphical.frame.bo.d(bo.java)
         at com.sunopsis.graphical.frame.w.actionPerformed(w.java)
         at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
         at java.awt.Component.processMouseEvent(Unknown Source)
         at java.awt.Component.processEvent(Unknown Source)
         at java.awt.Container.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Window.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    PS: do i have to modify any file after or before starting the odi agent
    Thnks and Rgds,
    Sourav
    Edited by: user13263578 on Mar 15, 2011 9:35 PM
    Edited by: user13263578 on Mar 15, 2011 9:48 PM

  • How to read and writre file into remote machine in the network

    HI Experts,
       i want to write the data and read data into file in remote machine(not in application server and presentation server).is it possible in abap.
    thanks in advance
    With Regads
    Naidu

    Hi naidu,
    1. We can use this type of path
    computername
    folder
    file.ext
    2. We can use this in GUI_UPLOAD
       and it will run on presentation server,
       connect to
    computer
       and read the file contents.
    regards,
    amit m.

  • 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
    ¯\_(ツ)_/¯

Maybe you are looking for

  • Unable to synch Classic iPod

    I cannot get my Classic iPod to synch on Windows XP. Running most recent version of iTunes.  Keep getting various error messages (different numbers) and unable to synch message. I restored the iPod; even tried on a different classic iPod...still no l

  • How do I get the application to turn on when only the process does?

    Yesterday my firefox was working fine, but today when I click on either of my shortcuts nothing happens. When I open my task manager I see the the firefox.exe process has turned on but not the actual application. I've been trying to get it to work fo

  • Dropped my itouch and now it wont connect to itunes, help?

    ^that says it all. it wont turn on and it wont connect to itunes. any help is much appreciated.  it's an 8gb 3rd gen

  • Have you heard about the latest addition to our SAP Microsoft Interoperability Suite?

    As you have seen from the coverage we did at the Microsoft SharePoint Conference earlier this month we introduced a new interoperability solution with the name Power BI Connectivity to SAP BusinessObjects BI. This is a great solution that makes it po

  • Creating sandboxes with the admin api

    I'm trying to write some code that creates sandboxes through the admin api. For these sandboxes, I want to only enable a specific set of functions. Unfortunately, when you create a sandbox with getSecuritySandboxes, it enables all functions by defaul