How can I get rdp to maximise to just one of my monitor when already logged in as mstsc /span? - rdp

I have 2 monitors at work and 2 monitors at home.
When I log into work from home using mstsc /span, my work desktop appears correctly spread across my 2 home monitors.
Then I want to open another RDP session on my work machine. When I maximise that window, it now fills both of my home monitors. How can I make it just fill the monitor it is on - like it would if I was at work and NOT using mstsc /span?

The solution is to edit the file "default.rdp" created in your Documents forder.. You need to add a setting for "selectedmonitors:s:x,y,z,*".
If you want to know which number is your monitor, execute "mstsc /l" in ms-doc command.
As seen on
https://remotedesktop.uservoice.com/forums/266795-remote-desktop-services/suggestions/18010924-allow-ability-to-choose-subset-of-local-monitors-f
Scott Hanselman also answered inside a comment with his own blog. his solution is very detailed:
https://www.hanselman.com/blog/HowToRemoteDesktopFullscreenRDPWithJustSOMEOfYourMultipleMonitors.aspx

This is an old question but I'll suggest an answer now anyway in case someone lands up here.
It seems to me that to solve this problem there is no need for selectedmonitors in the RDP file. Instead of using /span to connect to work you should be using /multimon.
/span creates one big "screen" across your two home monitors. So when you go "fullscreen" in your work session it goes across them.
/multimon makes your work computer aware of your two-monitor setup. When you maximise a window or go full-screen it will do so in the way you'd expect.
As I have found recently, selectedmonitors could be useful if your primary monitor at home is not the one which you want to consider the primary in your work session.

Related

Why does Google Colab say I have too many sessions?

I'm trying to run two notebooks on Google Colab but could only connect one notebook at a time to the virtual machine. There's a pop-up message saying "Too many sessions. You have too many active sessions. Terminate an existing session to continue." when I click the "connect" button on the second notebook. Does anybody know why?
Screenshot:
Edit: I'm using Google Chrome on Windows 10
Edit March 3, 2020: I ended up not using Colab that day, but I came back the next day and was able to run two Colab notebooks just fine. strange. I had this issue a couple of times since I posted this question, but the error disappeared the following day.
I am used to use it with 2 active sessions. I mean, it gives that error when I try to connect for the third notebook. Today, however, I could only connect 1 notebook at a time. It does not permit the second connection. Therefore, the limit changes time to time.
I have the same problem and I found my solution in this issue. I change the Runtime Shape to Standard in the 2nd notebook, it worked for me.
Try this:
Go to Menu "Runtime" > "Manage Sessions", you should see a list of active sessions. Terminate those you don't need. Although you think you are opening only 2 notebooks, some previous sessions may still linger around if you just close the browser tab.
Note: However, when I hit the problem today, I did the above to check, and I have only 1 other session. Usually, I am able to run up to 3 separate sessions. I am not sure if google is dynamically adjusting this based on overall demand. I also suspect ever since they introduce the Pro, priorities may be given to subscribers.
Im not sure but may be collab provides services to a account one at a time..

Internet Explorer High CPU usage

Situation and Problem: We are working with Citrix + Windows Terminal Server 2012 R2 and we are experiencing that a single Internet Explorer (Version 11.0.96) process can use up to 60-80% of CPU-Power. Since there are 15 user working on one Server any given time, one or two users can disturb all the others by using all the available CPU-Power.
First (insufficient) Solution: To overcome this Problem, We changed the Internet Explorer shortcut from the users startmenue (tile-design menue): We are starting the Internet Explorer just with three cores (out of 6 core) with this command:
start /Affinity 7 iexplorer.exe
Problem: If the users start the Internet Explorer from a link (out of word, Outlook or wherever), the Internet Explorer is starting again with all six cores.
Question: Is there a way to start the iexplorer.exe process (Independent from the starting point) always with less cores, or is it possible to limit the CPU-usage for a specific process..?
That's just two possibilities I'm thinking about, if you have other solutions in mind, feel free :)
Thanks and greetings Kevin
Many reasons can cause this issue, Like due to issue in a update, due to homepage, due to add on.
So you need to check one by one that what thing cause this issue.
You can try steps below and check whether CPU consumption reduced or not.
(1) On the General Tab click Tabs button and unchecked the option "Show Previews for individual tabs in the task bar".
(2) Go to the "Advanced" tab in "Internet Options" and checked "Use software rendering instead of GPU rendering".
(3) Temporarily disable all the add on and turn on them one by one and check the consumed memory every time. If if you find any add on consume high CPU then remove it from IE.
(4) Try to check whether issue caused by a faulty update.
You can also try to refer MSDN article below and if you are using that specific update then try to apply the hot fix may solve your issue.
Internet Explorer 11 consumes high memory and CPU cycles after you install update MS15-106

Running Malware In VirtualBox

For a project I am working on I want to collect data of malware in a virtualbox for 30 seconds and then revert the VirtualBox back to its original state and repeat this process 500 times for 500 different malware links that I have in a txt file. Before I revert to the normal VirtualBox state, I want to collect data from a program that is monitoring that malware. What is the best way to do this?
Edit: I'd also like to point out that I have code to read the opcodes that are being used by the application. All I would like to do is automate this process for the virtualbox.
I am not aware of such a feature in virtualbox or vmware but you can always use third party tools to compare the state of the different parts (like registry) before and after the execution of malwares.
I heard Ashampoo unistaller is a great tool to do the job but personally never tested it before.
Another option is to use sanboxes like sandboxie or cuckoo sandbox to capture the changes.
Another option is to use online sandboxes like hybrid-analysis which is perfect for what you want to do.
Just keep in mind that most malwares use anti-VM techniques to prevent execution in VMs so you probably will not be able to capture all the features of the malwares.
Hope it helps.

Opening up a Sequence of RDP Connections. For updating multiple Remote Desktop Connections

I Have to update the Servers here at work close to monthly. This includes windows updates and a few other software updates. We have close to 50 or so servers, and I would say 10 are physical and 40 are virtual. I have to open up an RDP connection for each of these servers and update them manually. (At least that is what I have been instructed to do, and haven't heard of a better alternative.) I would give a picture to describe what it looks like that I do when I have to open each of these up. However I need 10 reputation to do so from what its telling me.
So I guess I'll just have to hopefully explain this process clearly without the picture.
So the main issue that I would like to save time on, is I have to manually type out the name of the server, and then the username and password like normal. I would like to create an automated way to do this. I'm willing to have to put in the password each time, but it would save a ton of time not having to manually start another connection each time. Here is the code I've tried to piece together from resources on the internet and on stack overflow to create a batch file that would open all these Remote Desktop Sessions:
cmdkey /generic:"servername" /user:"username" /pass:"password"
start mstsc /v:"servername"
cmdkey /generic:"servername" /user:"username" /pass:"password"
start mstsc /v:"servername"
cmdkey /generic:"servername" /user:"username" /pass:"password"
start mstsc /v:"servername"
.......etc for the other 47 RDP connections
*DISCLAIMER I'm NOT an expert coder. I don't have a lot of expertise with coding, but I do my best to research as much as possible to understand what someone else's code is accomplishing. Obviously if I would have been able to think this through on my own, I wouldn't be posting, but since I'm a bit stuck, I'm interested to see what others can offer to help correct my thinking.
So from what I understand I'm doing here, is that I'm using cmdkey to "store" my username and password for each of these server connections. And with the /generic: classification I believe is where I put the individual different names of each of the servers, so it stores my user name and password based on each server. The "start mstsc /v:"servername" is just simply telling RDP to open up the connection to that server immediately to the prompt where "username and password" are normally required unless you try to add the cmdkey step that I added above.
I have noticed that this has caused a couple "glitches" which are a bit odd. One is that it can't keep open more than 3 or 4 of the connections open, because whenever I go to the next server to login, it "replaces" one of them. This does not happen though if I open each of them up individually(which takes a lot of time to do).
Another issue, is I've gotten this to work on a small scale with only 2 servers as an example. Our domain controller, it accepts the cmdkey line, and puts me right to the desktop of that server, but when it tries to open up the second RDP connection, it comes up with the "Windows Security" window and asks me to "Enter your credentials". which is not a step that I have to do only with that one other server. So if someone could clarify why some servers don't require this step in the RDP connection, and others just go straight to the server and ask for the username and password there, that would be nice to know.
Thanks guys. I hope that this question isn't to "basic" or vague. I am sorry I am a noob, but I'm always excited to learn more about coding and new ways to do things to make life simpler and help others. Let me know if you need any clarification, I'll be glad to offer it.
An extremely helpful and powerful tool that I have found for this problem, is called Remote Desktop Connection Manager 2.7, or RDCMan for short. I've been using this on my Windows 7 64bit desktop, and I've been working with servers ranging from Windows server 2000 to Windows server 2008 and I believe I've read somewhere it also works with Windows server 2012.
It's offered through the microsoft website linked here: (without the quotes) " https://www.microsoft.com/en-us/download/details.aspx?id=44989 ".
To give props for this great tool, here is the About info: Remote Desktop Connection Manager by Julian Burger
RDCMan v2.7 build 1406.0
Microsoft Windows NT 6.1.7601 Service Pack 1
.NET v4.0.30319.34209
mstscax.dll v6.3.9600

forcing glutCreateWindow to create the window on a specific monitor in a dual screen setup

I was wondering if there's a way to force the window created using glutCreateWindow (along with the associated command prompt for my application ) to open on a specific monitor in my dual monitor setup. I use one monitor for coding and would like to use the other for actually running my application everytime I fire it.
Thanks !
This is not possible using only glut. Your solution is going to be specific to the operating system that your program runs on.
Getting this to work is going to be far more effort than it is worth considering you want to do this just to speed up your workflow a bit.