Copy files to a remote server via RDP using a script - msbuild

We have a couple production servers that are configured to only allow access via RDP. There are no acessible shares. The dev team have no say in changing this setup but we want to automate code deployments to these machines. Presently we have to set Remote Desktop to share a local drive with the server, then RDP to the server and manually copy the deployment.
Any one know of a way to tunnel over RDP and drop files to a given directory on the remote host from the command line? The instructions will need to be included in an MSBuild configuration.

If you can get WS-MAN set up, PowerShell remoting and/or pmodem might be your ticket? https://web.archive.org/web/20180429054125/http://www.nivot.org/blog/2009/11/default

Related

I installed Active Directory on Windows 2012 R2, But now I can't log in VIA RDP

After installing the Directory Services Role and configuring and promoting the server to a domain controller the wizard automatically reboots my server.
After the reboot, I can no longer log in to the server as before (via RDP). What happened? This is a virtual server, so destroying it and starting over is an option, but after trying that 3 times how do I avoid this problem in the first place?
And another question is - can I install Active Directory without rebooting automatically?
can you ping ? what is the ping out put looks firewall is blocking or allow connections only from computers running remote desktop with NLA is enabled.
Why don't you install team viewer and setup unattended access and see what happening.

How to save a file to a local machine that you are editing via SSH

Here is my situation:
At work I have to ssh into a server from various different machines. I frequently need to update the file on the remote machine but also save a copy locally (on whichever machine at work I am using).
I usually use emacs on the server I have ssh into but not always.
Is there a direct way to save the file I edited while ssh'd into the server on my local machine? I.e. pipe it to my local machine somehow?

Running Worklight Deployment Server with fixed IP to Generate War/Wlapp/.adapter files?

I am done with my Project and its time to Deploy things to the Websphere Server to host My Worklight Application based on Woklight 6.1.0.
Despite reading the following question, I still have a question.
IBM Worklight - How to connect to another Worklight Server located in another machine in the same network?
The Websphere Server on which i have to Deploy my .war, .wlapp and .adapter files is remote server and does not fall under my company's domain. I do not have access to IP address and port provided by clients, So to deploy the same my backup plan is to copy files to a laptop having open network access and use RDP of the Window Server IP to deploy
My issues are:
As Worklight behaves, while i do Run as --> Run on Worklight Development Server it overwrite file properties like worklight.properties,.plist and index.html for windows with details of its local IP address.
When i do, Run --> Build Settings and Deploy Target I build the application to work with different Worklight Server and fill details i.e. Server: http: //182.19.xx.x0:9xx0 and Context Path: /Advisor. After doing it i see a message stating "Rebuild your Application after every change" then i click on 'OK'.
I expected it to rebuild everything for me as per details i provided but nothing happens. Is there anything i am missing?
After you add your remote server details in the Build Settings and Deploy Target window, you are instructed to re-build the application. Worklight Studio will not do this for you.
Change deployment target
Click OK
Right-click on the application folder and select Run As > Build All Environment
Per the user documentation:
Important: This dialog is used only to specify configurations and
settings; clicking OK does not trigger a build. Any time that you make
a modification with this dialog, you must rebuild your application and
environments for your changes to take effect, using either the Run As
-> Run on Worklight Development Server or the Run As -> Build... menu commands.

How do i connect to Unix File System which is in Different Remote servers

I wanted to place a file in UNIX file system from local desktop using Excel VBA, which is in remote server,which is in another Remote Server.
Problem Statement:
First I have to connect to Remote Server 1 and then i need to connect Remote Server-2 which is in Remote Server-1.
The Unix server is in Remote Server -2.
Please let me know possibilities of connecting to Unix Server from my local desktop using Excel VBA.
Thanks,
DEEPAK
Quite a confusing setup but your "server in a server"... is it a virtual server? If so, your admin should have set it up to have its own resources and network access so you don't have to access one inside another. You just connect to the server you need.
If you are connecting to the UNIX server from a Windows machine your admin should have installed and configured SAMBA so you can then access files through Windows Explorer.
I've made an assumption at the beginning because I'm unsure of your precise configuration as I've never heard of a server in a server unless you're talking about a virtual server, but these are usually seen as individual servers that can be directly connected to...
This may answer your question
check it out here:
http://www.thinkplexx.com/learn/howto/linux/system/using-pipe-and-ssh-to-connect-commands-between-different-unix-hosts-output-local-cat-less-etc-into-remote-files-grep-or-watch-remote-logs

remotely run a script sitting in a windows server from a unix box or from another desktop (Say windowS)

I have to run a batch job which sits in the windows server from my unix box.
Or from my local machine.
The win server has a userName/Pwd .
How do i programmatically connect to the windows machine and run the batch?
(The batch will change some file permissions in that machine)
Please let me know if there is a better way of handling this situation
A lot of this depends on how you authenticate on the windows machine, the network relation you have to it from your local and unix machine and what level of permission you will need to run the task ons the remote batch file.
I can say that in Windows, you could start by possibly creating a script that stores the username and password needed to connect to the remote machine in a variable, and in that script have it connect to the machine over a network and run the batch as that user.
How woudl you connect to the remote windows server? is it on a LAN or VPN type environment, do you connect with ssh or do you normally map it over the network?>