Command line RDP call CMD on target machine
Solution 1
If you need to use RDP to access these machines, there are shells for mstsc.exe that allow command line auto-login and running a program upon connection. One that comes to mind is Remote Desktop Plus. You could use a batch script to log in to the given machines with the following syntax:
rdp /v:computer /u:username /p:password /start:"pathtoscript/script.bat"
Download from http://www.donkz.nl/
Solution 2
Windows Remote Shell is what you want;
http://technet.microsoft.com/en-us/library/dd163506.aspx
Once setup, you can go WinRS -r:MYSERVER "cmd.exe"
which will run cmd.exe on the remote machine and bring you a remoted console session locally. Alternatively, you could just run any other command directly on the box instead.
Actually, if you are need to use RDP (and I wouldn't bother just to run a batch file if I could avoid it) you could run a shell (or any other command) without a 3rd party program. Just run mstsc.exe, choose an alternate shell and save the RDP file.
The key settings you need are looking for are;
full address:s:yourserver.domain.com:3389
alternate shell:s:c:\windows\system32\cmd.exe
Related videos on Youtube
Beckham_Vinoth
Updated on September 18, 2022Comments
-
Beckham_Vinoth over 1 year
I am trying to do a get request using elasticsearch which needs to get the data with respect to its Popularity/ rating. So I followed this Link . I set the rating of my item by using the below one,
#1 http://localhost:9200/cars/car/_rank_eval above is the Api which is used to create _rank_eval using postman , Below is my Body content , { "requests": [ { "id": "horsepower", "request": { "query": { "match": { "horsepower": "68" } } }, "ratings": [ { "_index": "cars", "_id": "25", "rating": 10 }, { "_index": "cars", "_id": "119", "rating": 1 }, { "_index": "cars", "_id": "52", "rating": 2 } ] } ], "metric": { "precision": { "relevant_rating_threshold": 1, "ignore_unlabeled": false } } }
Steps i did so far , 1 . Created database with dumb data's in MySql 2 . Transferred my db data's to ElasticSearch using loadstash 3 . Set some rating's to my data
so what are all the next steps , did i miss anything .. I need some clarification/help on this .
-
cirrus over 11 yearsActually you don't need a third party tool (moved answer below for better formatting)