Tuesday, June 26, 2012

Enable remote desktop from the command line.


For some reason the regedit gui would not connect to the remote Windows 7 pc. I used my favorite tool Psexec from the command line and this worked!
reg add "hklm\system\currentcontrolset\control\terminal server" /v fDenyTSConnections /t REG_DWORD /d 0x0
This is how to verify the change.
reg query "hklm\system\currentcontrolset\control\terminal server" 
   fDenyTSConnections    REG_DWORD    0x0

Tuesday, June 19, 2012

Quick speed test between two servers with Iperf.

Iperf for Windows - free and portable!
http://linhost.info/2010/02/iperf-on-windows/

Server A:
iperf -s

Server B:
iperf -c x.x.x.x -P 5

[SUM]  0.0-10.0 sec  1.08 GBytes   927 Mbits/sec
(Not bad for 1gb network.)

The default test is 10 seconds, add "-t 60" for a longer test.