Deploy Terminal Server assigning C: to user and move profile on E:


What Do you need :
1 floppy DOS bootable (WIN98 or WIN ME) you can use XP format and transfer Operative system.

or you can us freedos diskette that you can find here

2 and cdrom ide driver for dos (you can find it on download page)
3 Windows 2000 or 2003 CDROM .

Boot from dos floppy disk:

now run fdisk make sure to enable large disk support, create the following partition

Partition on 32GB disk
Partition Type Size  
1 C: Primary/Active 4GB Boot


3 D:   4GB System
4 E:   24GB Profiles

Reboot your system

Format all Partition with FAT32 File system, now run "F:\i386\winnt.exe /u:A:\unattend.txt /s:F:\i386 /t:D:" where F: is cdrom and I386 the windows install directory.

; Sample Unattended Setup Answer File for Deploy TS
; by Massimiliano Daneri

Unattendmode = GuiUnattended
OemPreinstall = NO
TargetPath = *
FileSystem = ConvertNTFS
ProfilesDir = "e:\Documents and Settings"
; Sets the Timezone to the Pacific Northwest
; Sets the Admin Password to NULL
; Turn AutoLogon ON and login once
TimeZone = "001"
AdminPassword = *
AutoLogon = Yes
AutoLogonCount = 1

; For Server installs
AutoMode = "PerServer"
AutoUsers = "5"
; List the programs that you want to launch when the machine is logged into for the first time
BitsPerPel = 16
XResolution = 800
YResolution = 600
VRefresh = 70
JoinWorkgroup = Workgroup
FullName = "Your User Name"
OrgName = "Your Organization Name"
ComputerName = *
productKey = ""
A note about unattend.txt : 
Unattend.txt has been modify following Microsoft article  kb 236621;en-us;236621

 Finally you install windows --- Reboot

Now your Windows is ready

Open Disk Management  you see something similar this

Next step is change disk C: label to G: , open regedit and go to HKLM/SYSTEM/MountedDevices select \DosDevice\C: key

click mouse right button select Rename and write \DosDevice\G:

Now go to HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\Bootdir and change value from C:\ to G:\

Now go to HKLM\SYSTEM\CurrentControlSet\Control\ContentIndex\Catalogs\System\Scopes select C:\ key and rename to G:\

Now open boot.ini file and delete C:\="Previous operating System on C:" line .
Save and close file.
Reboot the system and logon again as administrator
Now change Pagefile location from D: to G:
Now we need to change file system type from FAT32 to NTFS on G: and E: volumes, for do this open a command prompt and digit CONVERT G: /FS:NTFS tell always YES now digit CONVERT E: /FS:NTFS and tell always YES
Install Terminal server Service, when done go to D:\WINDOWS\Application Compatibility Scripts and launch chkroot.cmd,  now you see a notepad with ROOTDRV2.cmd open, the last line is 
"Set RootDrive="  you need to append C:\
Open d:\WINDOWS\system32\usrlogon.cmd replace every occurrences of %HomeDrive%%HomePath% with %UserProfile% and save

usrlogon.cmd (modified)
@Echo Off

Call "%SystemRoot%\Application Compatibility Scripts\SetPaths.Cmd"
If "%_SETPATHS%" == "FAIL" Goto Done

Rem This is for those scripts that don't need the RootDrive.

If Not Exist "%SystemRoot%\System32\Usrlogn1.cmd" Goto cont0
Cd /d "%SystemRoot%\Application Compatibility Scripts\Logon"
Call "%SystemRoot%\System32\Usrlogn1.cmd"


Rem Determine the user's home directory drive letter. If this isn't
Rem set, exit.

Cd /d %SystemRoot%\"Application Compatibility Scripts"
Call RootDrv.Cmd
If "A%RootDrive%A" == "AA" End.Cmd


Rem Map the User's Home Directory to a Drive Letter

Net Use %RootDrive% /D >NUL: 2>&1
Subst %RootDrive% "%UserProfile%"
if ERRORLEVEL 1 goto SubstErr
goto AfterSubst
Subst %RootDrive% /d >NUL: 2>&1
Subst %RootDrive% "%UserProfile%"

Rem Invoke each Application Script. Application Scripts are automatically
Rem added to UsrLogn2.Cmd when the Installation script is run.

If Not Exist %SystemRoot%\System32\UsrLogn2.Cmd Goto Cont1

Cd Logon
Call %SystemRoot%\System32\UsrLogn2.Cmd



I suggest you to defrag your disk and ....
Reboot "and enjoy