Running batch files via the Remote Desktop Agent
Thanks, Alex. Appreciate your help this morning!
Running batch files via the Remote Desktop Agent
Email sent. Thanks!
Running batch files via the Remote Desktop Agent
I just tested a .ps1 script and it works fine using the same method (with remote poweshell selected as the entry type). It's just seems to be.bat files that are the issue.
Running batch files via the Remote Desktop Agent
Hi Jean,
Yes, the RDP session is open and the Agent is running on the remote host.
If I simply click execute on the .bat entry, the .bat file successfully executes on my local machine. It just doesn't seem to do so on remote hosts via the agent.
Screenshots attached to show the process I am doing.
I noticed on the Docs page that it says about the command line entry, "This entry is used to integrate a Windows Command Line. It will execute a command on the local machine," which would seem to indicate that I can't actually use it to execute command line files on remote hosts via the RDM Agent? Or am I not understanding that correctly?
I'm clearly doing something wrong, I just don't know what it is haha :)
Running batch files via the Remote Desktop Agent
What's the difference between adding the script as a session and just using the Add Macro/Script/To option?
I've created a folder in my RDM database named Scripts, and then used the Add Macros/Script/To option to create a cmd session for a simple .bat file that empties the recycle bin. I indicated that I wanted the script to 'Allow run via agent' and 'Allow batch execute' as well. I then right-click a running RDP session and select Execute Script Via Agent. My script now shows up in the Script/Tools option, however, when I select it and click execute nothing happens on the remote host.
If I simply click execute on the created CMD session, the .bat file successfully executes on my local machine. It just doesn't seem to do so on remote hosts.
Running batch files via the Remote Desktop Agent
Out of curiosity, what makes it possible to select a file from my PC for .ps1 files and execute it via the RDM Agent, but not be able to do the same for .bat files without creating an independent session?
I found some info in the docs about creating a command line session. Do I have to create a session for each host?
Running batch files via the Remote Desktop Agent
Currently, my scripts (they are .bat files that I use to tidy up Windows after updating) are saved in a folder called Scripts in My Documents. How do I actually get them to show up on the Script/Tool drop-down menu? When I go there as of this moment there's nothing showing up there. When you say "are you able to select the session," I'm not sure what you mean. Do I need to actually create the scripts in RDM itself?
I guess I'm confused by the fact that when selecting the Powershell option I can simply navigate to my powershell scripts via the Filename option and then execute my .ps1 of choice, which could effectively be located anywhere on my PC. It doesn't appear to be the same procedure for .bat files, however.
Running batch files via the Remote Desktop Agent
Hi,
I'm struggling to figure out how to run batch files correctly via the remote agent. I have no trouble running Powershell scripts, but can't seem to find the same success running batch files. When I right-click a saved remote desktop (or multiple saved remote desktop) and click 'Execute script via Agent', it won't allow me to to select an actual batch file when I have the Command Line option select. How do I actually select a batch file as I do a script when I have Powershell selected (it provides a filename option)?
I've also tried using the 'Run' option, but when I point it to a batch file and then execute it nothing happens. And, actually, if I input a command directly into the command line option, sometimes even though the command appears to execute it doesn't actually do what it was supposed to do. For example, if I use this command to empty the recycle bin 'rd /s c:\$Recycle.Bin' in the Command Line option, it brings up a CMD window asking me to verify that I want to empty the recycle bin. I input Y for yes, but the recycle bin is not emptied.
The only solution I've found so far is to actually put the batch file on the remote machine's desktop and then run a command to execute it, but that's not quite as efficient as I'd like it to be. Any help solving this issue will be much appreciated!
Also, it there a way it import my own local scripts into RDM so that they are available in the Script/Tools tab when executing via the Agent? I can't find an option to do so in the Script/Tool Manager or anywhere else.
Thanks!
Understanding the NoMachine Add-On and how to configure it
Ah, okay. Thanks for the help. I finally scrounged up what I needed to know off their website. It required about 8 or 9 tabs in my web browser to get there haha.
Evidently, the nxclient.exe is freely available to anyone. On their website, it is labeled as the Enterprise Client, so I thought originally it was only available to Enterprise users. You can freely put the Enterprise Client on as many machines as you want whether for personal use or commercial. The Enterprise Client is just a slimmed down version of the NXPlayer. The NXPlayer acts as both client and server software whereas the NXClient just acts as purely a client software.
There's a pretty good description on this page about the client software.
Understanding the NoMachine Add-On and how to configure it
Hi Jean-Francois,
Thank your for the information. Do you know the difference between the nxplayer vs the nxclient? Would I install the player on the machine I am remoting into and then install the client on my personal computer I am using to access the remote machine?
I am just a bit confused by the NoMachine documentation. I am using the NoMachine free edition, which I guess would be the nxplayer.exe. I came across the Enterprise Client, which I guess would constitute a slimmed-down, client only version. It appears the this Enterprise Client, although it is so labeled 'Enterprise', is free to install on any client machines. Their documentation just seems a bit muddled, so I am unsure about how it all works together and what's free and what isn't. I don't want to violate their terms of service.
Also, is there a way to open up NoMachine in a RDM tab instead of externally?
Understanding the NoMachine Add-On and how to configure it
Hi,
I've been experimenting with a view different remote desktop software, one of which is NoMachine. It's unclear to me what the difference is between the NoMachine add-on and the NX Client add-on. Could some please explain the difference and when I would choose to use one over the other?
Additionally, I'm not really understanding what the difference is between to the two starting methods: 1) Using profile name on local disk, and 2) Using stored profile in session. They both appear to need a profile that's already been created on the local disk to initially start a session. Where I'm confused specifically is that if I choose option 2 it never remembers the previous settings/state of my session. As an example, when a NoMachine session is for the first time initialized, it will display a series of intro screens to familiarize you with various aspects of the session that can be configured to your liking. If using option 2 and I check the box to not show the intro screens during a given remote session, but then close the session and re-open it it does indeed show the intro screens again. Using option 1 prevents this from happening, but I'm not really sure why.
In the RDM help docs it states about option 2, "The data of an existing profile (file) will be stored directly in the session and it will be usable on any other computer that shares the data source." Where is this session data stored and how is it being share with other computers? Would this the option I choose if I'm using Devolutions Cloud as my data source and might use different computers to administer remote connections?
WaykNow sessions keep disconnecting within 10 to 90 seconds of initial connection
Oh, okay. Thanks!
WaykNow sessions keep disconnecting within 10 to 90 seconds of initial connection
Hi,
I'm using WaykNow to connect remotely to a few clients I do work for that live some distance from me. Unfortunately, it has proved a bit futile as although I can typically successfully connect to a computer, within a short amount of time it disconnects. If I try to reconnect it typically will not let me until I've closed completely out of RDM and then reopen it. I have attached a screenshot of the disconnect notification that pops up.
Any ideas on why this might be happening? I did test with another RD software and it works just fine, but I'd much prefer to use Wayknow as it is free for commercial use and integrates nicely with RDM.
Oh, and I should note that it did this to me on multiple machines.
Thanks!
Andrew
Quick RDM Agent Question
Do I need to have the Agent installed on the host system as well as the remote systems? Or can I just install it on the remote systems?
Logout of user profile without need for manual intervention
You can forcibly disconnect the sessions remotely as long as you have your admin account running in Admin mode.
Maybe some sort of macro as a pre-connection idea in RDM..
for /f "tokens=1*" %%f in ('qwinsta /server:$HOST$') do if %%i == Active tsdiscon %%h /server:$HOST$
That will automatically disconnect the active session (assuming a single user workstation). If you are connecting to a multi-user workstation (RDS etc.) that that would disconnect everyone.
David F.
Thank you, David. I will have to try this. What I came up with is to use the CMD prompt to logoff the guest user, which of course disconnects that particular session. However, this allows me to make a new RDP connection using my Admin credentials. It seems work pretty well.
I work at a library and all the publicly available PCs auto-login to a guest account. I needed to be able remote in to issues updates and perform occasional maintenance.
Thanks again!
Remote Access on Android
Sometimes a machine can have a DNS suffix even when it doesn't have a domain. Just to be sure, the full name of the host would be the name that appears if you resolve the ip address (i.e. by typing "ping -a x.x.x.x" in Windows command line).
If that name doesn't work I'm afraid you can only use the DHCP IP address for now. The next version of the Android app will improve host name resolving on most Android devices so you can try using the host name again once it's out. The new version should be released before the end of the month.
Ok. Thanks. It doesn't appear to have a DNS suffix after running that command in the command prompt. I'll just use the DHCP IP address for now and try the host name method again after the app update.
Thanks for all your help.
Remote Access on Android
Can you try using one of the following as the host name for your session :
-The ip address of the host
-The full name of the host on the network (i.e. hostname.domain.com)
Thank you
Putting in the IP address worked. However, the IP address is received via DHCP so it could obviously change. Is there anything I can do that would help deal with this issue?
The computers I'm dealing with here aren't on a domain, so the computer name is also the full name of the computer.
Remote Access on Android
I'm running Android 6.0.1 and the OS is Oxygen in case that's of any benefit.
Remote Access on Android
Hi Andrew,
To the right of each connection there should be 3 dots aligned vertically. Clicking on the dots will let you see the different options for that connection, such as view, edit or open. To launch a session, select "Open" from the list.
When I do so, I'm getting a "The host is not responding or cannot be resolved. Please verify your settings and host availability" error. It works on my desktop, however.
Remote Access on Android
Great. Thanks!
Remote Access on Android
Hi David,
I guess where I'm confused is by the fact the my Windows machine has RDP installed on it but my android phone naturally does not. So how can RDM effectively use RDP on android? I didn't think RDM was actually providing the RDP software since it's just a manager, but instead just "calling it" so to speak.
Whenever I open up RDM on my phone, I see all my sessions but I can't seem to actually open a session. When I type on a saved session, nothing happens. Any ideas?
Remote Access on Android
I've successfully installed the app on my phone and have created an Online Drive that holds my sessions files so that I can sync everything. Everything appears to be in working order as far as that's concerned as my sessions are showing up on my phone now. I am wondering how to in fact remote in, however. Is this possible through the app? Or will I need to use a separate app for that?
I know Microsoft makes and RDP app for android as well.
Thanks.
Logout of user profile without need for manual intervention
Nevermind, It's evidently not possible using Microsoft's built in RDP.
Logout of user profile without need for manual intervention
At my organization (a library), we have quite a few public computers that automatically boot up and logon to a guest account. If I try to remote into one of those computers while no one is using it to do some updates, I receive a screen that says "Another user is logged on to this computer. If you continue, this user has to disconnect from this computer. Do you want to continue?" At this point, I physically have to walk out to that computer a verify that I want to allow a remote session. What I am wondering is if there is a way I can force the remote computer to log off the guest account so that I can remote in as an admin without having to manually intercede?
Applying Windows Key Combinations During a Remote Session
Great! Thank you. I knew I was overlooking it. I do have one other question, but I'll create a new topic since it's an entirely different issue than this one.