|
|
|
|
Group: Forum Members
Last Login: Thursday, March 15, 2012
Posts: 5,
Visits: 38
|
Hello All -
Often and due to a team member who doesn't like to Log Off of an RDP session, I will try to connect to a server via RDP and get the message "Terminal Server Has Exceeded the Maximum Number of Allowed Connections." Everyone who has gotten this before knows that this is extremely frustrating. To resolve this, I run commands at the command prompt like in this article here or more recently have found a script that with a little editing, will make it a little faster to accomplish (see user comments of the link above or attached file.) Obviously, we can add custom commands to VNC Manager, but it would be great (and I'l imagine very easy) to make a GUI or menu option to do this in a future release. Thoughts Anyone? Thanks for your time and great product! - Ben K
ResetTerm.rar
(1 view,
406 bytes)
|
|
|
|
|
Group: Administrators
Last Login: 8 minutes ago
Posts: 1,625,
Visits: 3,046
|
Hi, thanks for the feedback! I've added it to the product features backlog (Item ID: 420). You are correct; it should be relatively easy to implement a GUI for such feature.
Obviously, we can add custom commands to VNC Manager Just to clarify, you would have to use the Remote Exec feature to run "reset" command on a remote computer.
 We are looking for investors and business partners. Please contact us for more details
Kindest Regards, SmartCode Solutions Support
Edited: Friday, July 16, 2010 by
Support (s-code)
|
|
|
|
|
Group: Forum Members
Last Login: Thursday, March 15, 2012
Posts: 5,
Visits: 38
|
Thank you for your quick reply!
I have a question that's probably easy for you, but know that it will steer this post into a category that it should be in, but hopefully you can help anyway. I've got a batch file (which I mentioned in my first post) that I'm trying to add to External Tools. I re-wrote it to use variables from VNC Manager, but must be doing something wrong. The script is proven, but i don't think the variables are coming over correctly. I've pasted the batch file below and attached a screenshot of my VNC Manager setup as well as the result. Please let me know why it's not bringing over the variables that I'm trying to use. Note: I attached the screenshots as well as putting them in the post because they looked small.Thanks! SET SERVER=($SERVER_IP) SET USER=($WINDOWS_USER) SET PASSWORD=($NTLMCOMPWD) NET USE \\%SERVER%\SYSVOL /user:%USER% %PASS% :START %EXEC%\query session /server:%SERVER% SET SID= SET /P SID=Enter session ID to reset: %=% %EXEC%\reset session %SID% /server:%SERVER% SET CONT= SET /P CONT=Reset more sessions? %=% IF /i “%CONT%” EQU “y” GOTO START SET REMOTE= SET /P REMOTE=Launch remote desktop? %=% IF /i “%REMOTE%” NEQ “y” GOTO END |
|
|
|
|
Group: Administrators
Last Login: 8 minutes ago
Posts: 1,625,
Visits: 3,046
|
I think I know the answer. You are trying to use the variables in your script files as if they were environment variables. This won’t work. You should pass ($SERVER_IP) and the others as the command line arguments. And then in your.bat file access those command line arguments via %1, %2 and so on variables.
 We are looking for investors and business partners. Please contact us for more details
Kindest Regards, SmartCode Solutions Support
|