Saturday, March 27, 2010

Force Terminal Services Clients to Disconnect when Idle

When you administrate servers running Windows Server 2000 or 2003, one of the most frustrating experiences is when sessions get cut off but the server still thinks they are active. You’ll get this error message, which you are sure to encounter at some point:

The terminal server has exceeded the maximum number of allowed connections.

You can help prevent this from happening by setting a policy on the server to automatically disconnect when idle.

To change this setting, go to Administrative Tools \ Terminal Services Configuration.

image

Click on Connections in the left hand pane, and then right click RDP-Tcp and select Properties. In the resulting window select the Sessions tab.

image

Check the boxes for “Override user settings” and change the idle session limit to something reasonable, like an hour. You can set it lower if you’d like.

Change the radio button to “Disconnect from session” when session limit is reached. This will make all sessions automatically mark as disconnected on the server. The session will be saved exactly as it was, but the server will mark it as disconnected so that you can log back into the session again.

Tuesday, March 9, 2010

Maths Tricks - Adding Time

Here is a nice simple way to add hours and minutes together:

Let's add 1 hr and 35 mins and 3 hr 55 mins together.

What you do is this:
make the 1 hr 35 mins into one number, which will give us 135 and do the same for the other number giving us 355

Now you want to add these two numbers together:
135
355
____
490
So we now have a sub total of 490. What you need to do to this and all sub totals is add the time constant of 40.

No matter what the hours and mins are, just add the 40 time constant to the sub total.
490 + 40 = 530

So we can now see our answer is 5 hrs and 30 mins!


Maths Tricks - Multiplay by 11

How do we multiply by eleven easily?

First we will try this by writing the answer backwards.

So, when always multiplying a large number by 11, the last number will always be the last number of the sum we are multiplying.

Let me explain.

176 is the number we are multiplying.

So the last number in out answer will be 6. If the sum was 143 the last number in our answer would be 3... get it?

So now what?

Easy, just add the next number to the last number, 7 + 6 = 13

So the next last number will be 3, carry the 1.

Add the 7 and 1 together, giving 8, then add the carried 1, 9 then write that number as our next part of the answer, 936

Then, the last number will be the first number in our sum, in this case 1.

So the answer is 1936.