Sunday, January 6, 2013

Windows 7 - Concurrent Sessions

I ran into an issue a while back. My desktop is a decently fast machine. Sandybridge i7 with a SSD boot drive. That makes it way faster than any other computer that we own. Which also means that both my wife and I may want to use it at the same time. My wife would by physically logged in, and I could hop on my laptop and RDP in. Since we have separate windows accounts it should work great.
Wrong. I had used it plenty of times in the past, but it turns out that it is actually reserved for Windows Server. For Windows 7 (even my pro version) they do not allow concurrent sessions.

So this isn't going to work for me, the computer is more than capable of handling the load of two users at the same time. Looking into it more I read some things that made it sound like Windows Server has some extra features built in that help alleviate issues that can come up from concurrent sessions. But for just two users I figured it wouldn't be too big of a deal.

I found some information in the link below on how to do it.
http://digiex.net/guides-reviews/guides-tutorials/windows-guides/1879-enable-concurrent-sessions-windows-7-windows-vista-windows-xp-termsrv-dll.html

You download a .exe that will modify the termsrv.dll file to allow concurrent sessions. Pretty simple.
After running this it worked exactly as it should work. My wife can be on the desktop, and I can remote in to do something without having to kick her off.

There is one downside to this though. It is not supported by Microsoft, in fact it might possibly be against the terms and conditions and user license. So do it at your own risk in case Microsoft decides in the future to mark this hacked file as a breach of the contract. As far as I know this still works in Windows 8 so if they care about it they haven't been quick about blocking it.

Synergy - Virtual KVM Switch

So every month or two I work on the weekend; luckily I can work from home. However it is a pain to have to re-wire the monitor from my desktop so that I can use my work laptop at home while having two screens. I also hate touchpads(even the apple ones) which means I need a mouse. I can't can't live without a 10 key number pad, so I need a full size keyboard also.

When I work I usually have my laptop's display showing an RDP connection to a server where I can access and run SQL queries. I then use the external monitor for the web browser so that I can view our CRM product. Since at home I am working on two separate computers, but only one mouse and keyboard I needed a solution that didn't involve constantly moving my hands from my desktop keyboard to my laptop keyboard. That is where synergy comes in.

Synergy is a piece of software that is a virtual KVM switch. In simplest terms it allows me to use one keyboard and mouse on two different computers. Although I have not tried it it is supposed to be cross platform so you can use the same mouse and keyboard on a windows, Mac, and linux computer at the same time. Pretty cool stuff.

You need to install Synergy on all computers that you want to use it on. I found that the setup wasn't as easy as I was hoping. It took my a couple of tries to get it right. I also tried a piece of software called "Mouse Without Borders" by a Microsoft developer. It worked well for a bit but I ran into issues so I am back using Synergy.

On the computer that has the mouse and keyboard hooked up you will select the radio button "Share this computers keyboard and mouse(server)






Then press configure.  This next part is where I ran into issues before.








On the top you will add the two screens. Then on the bottom is the logical layout. So this says that 0%-100% to the right of BrandonPC(my desktop) goes to Laptop(my work laptop) Or in other words, everything on the right side of my desktop is my laptop. That means that when I drag my mouse past the right side of my desktop it will pop up on my laptop.
However we also need to tell it how to get back to the original screen. I missed this step my first time and got frustrated because I could drag my mouse to my laptop but I could not get it back to me desktop again. Not super useful that way.
 

 So now I am telling it that everything to the left of my laptop's screen is my desktop. I wish it would do it automatically, but this gives it some more complicated options if you want them.

The last step is go to to the laptop, select the "Use another computer's shared keyboard and mouse(Client) and plug in the IP address or host name. You may have to open up the firewall port on the computer acting as server. You can set the port under the advanced options.

 

Of course make sure that the "Server" is already running before you try to connect a client to it. If everything is setup correctly it will more or less work like one computer with multiple displays in extended desktop mode. Of course you cannot move windows between each computer, but you can copy paste text. For my uses it works fine though.