Cerca nel blog

29 ottobre, 2009

Tuning Terminal Server Windows 2003

Registry setting for tuning connections with TS 2003.

Enjoy!

--8<----8<----8<----8<----8<----8<----8<----8<----8<----8<--

REGEDIT4

; don't update last accessed time
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem]
"NtfsDisableLastAccessUpdate"=dword:00000001

; sometimes the disk is busy ... let windows keep it's cool
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Disk]
"TimeOutValue"=dword:0000003c

; not sure why one would want to tweak fileservers settings on w2k3 termserver ... but alas
; even ms suggests it ... kb324446
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters]
"SizReqBuf"=dword:00004410
"MaxWorkItems"=dword:00002004
"MaxMpxCt"=dword:00000800
"MaxRawWorkItems"=dword:00000200
"MaxFreeConnections"=dword:00001000
"MinFreeConnections"=dword:00000100

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanWorkStation\Parameters]
; don't cache smb writes ... write them (the underlying os can cache if it wants)
"UtilizeNtCaching"=dword:00000000
; don't encrypt or sign smbtrafic
"EnableSecuritySignature"=dword:00000000
; use faster data access scheme
"UseLockReadUnlock"=dword:00000001
; better performance KB324446
"MaxCmds"=dword:00000800
"MaxThreads"=dword:00ff
"MaxCollectionCount"=dword:00ff

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Configuration Manager]
"RegistryLazyFlushInterval"=dword:0000003c

; don't try to find out about Scheduled jobs on other windows boxes
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\RemoteComputer\NameSpace\{D6277990-4C6A-11CF-8D87-00AA0060F5BF}]

; limite the desktop for speed
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp\UserOverride\Control Panel\Desktop]
"AutoEndTasks"="1"
"DragFullWindows"="0"
"MenuShowDelay"="10"
"WaitToKillAppTimeout"="20000"
"SmoothScroll"="00000000
"Wallpaper"="(none)"

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp\UserOverride\Control Panel\Desktop\WindowMetrics]
"MinAnimate"="0"

; don't autoadd networkfolders else windows will go searching them every
; time it does something with files ... if one of the links is slow
; your whole performance will go down the drain
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
"NoRecentDocsNetHood"=dword:1

; disable grammar checking in Word 2003
[HKEY_LOCAL_MACHINE\Software\Microsoft\Office\11.0\Word\Options]
"AutoGrammar"=dword:00000000

; faster screen display in IE
[HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\Main]
"Force Offscreen Composition"=dword:00000001

; No Customer Experience Program in Office
[HKEY_LOCAL_MACHINE\Software\Microsoft\Office\11.0\Common]
"QMEnable"=dword:00000000

; dont hunt down imap folders in the outlook bar ... require office SP2
[HKEY_LOCAL_MACHINE\Software\Microsoft\Office\11.0\Outlook\OutlookBar]
"DisableStoreCrawling"=dword:1

--8<----8<----8<----8<----8<----8<----8<----8<----8<----8<--

28 ottobre, 2009

Allow Multiple Connection With Remote Desktop on Windows XP

Everybody knows that Windows XP does not allow multiple sessions/connections with remote desktop.
This behaviour is decided cause of EULA (only one user can login), but in Windows XP SP2 Beta this restrictions was removed.

It's possible to re-enable this feature:
- Download termserv.zip and unzip where you want.
- Start windows in safe mode
- Copy termserv.dll from unzipped directory into %windir%\system32 and %windir%\ServicePackFiles\i386. Rename the original termserv.dll into termserv.old from dllcache (%windir%\system32\dllcache)
- Enable Fast User Switching from Control Panel > User Accounts > Change the way users log on or off and enable Fast User Switching.
- Insert reg "Concurrent Connections SP2.reg" from directory where you unzipped termserv.zip. If you want to do registry modification by hand, go to start > run > regedit
Browse to HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Terminal Server\Licensing Core

Change EnableConcurrentSessions value to "1". If does not exist, create a dword key with this name and set it to "1".


- Open Group Policy Editor (start > run > gpedit.msc). Go to Computer Configuration > Administrative Templates > Windows Components > Terminal Services and change value "Limit Number of Connections" with a number you want. This value set number of concourrent connections via rdp.

- Restart Windows normally and test.

Enjoy.

20 ottobre, 2009

Windows XP Guest - Jaunty Host - Usb

First of all, USB will not work in VirtualBox if you are using the Open Source Edition (OSE) of VirtualBox. Get the full closed-source edition of VirtualBox from their website. There are many differences between the open-source edition and the closed-source version and one of them is USB.

I finally got USB working with Windows XP running as a guest inside VirtualBox running on a Ubuntu Jaunty host. First find out what the group id of the vboxusers group is:

$ grep vbox /etc/group
vboxusers:x::david

Then, enable the deprecated /proc/bus/usb inteface:

$ sudo gedit /etc/init.d/mountkernfs.sh

Add the following line after /proc is mounted, at the end of the do_start() function.

domount usbfs "" /proc/bus/usb usbdevfs -onoexec,nosuid,nodev,devgid=,devmode=664

replacing with the you found in the first step. Make sure to reboot.
This didn't work for me until I rebooted. There you have it.
You shouldn't have to edit /etc/init.d/mountdevsubfs.sh or /etc/fstab as some other internet sources have suggested.