|
Unattend.txt
|
; Sample Unattended
Setup Answer File for Deploy TS
; by Massimiliano Daneri
; http://www.vmts.net
[Unattended]
Unattendmode = GuiUnattended
OemPreinstall = NO
TargetPath = *
FileSystem = ConvertNTFS
[GuiUnattended]
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 |
[LicenseFilePrintData]
; For Server installs
AutoMode = "PerServer"
AutoUsers = "5"
[GuiRunOnce]
; List the programs that you want to launch when
the machine is logged into for the first time
[Display]
BitsPerPel = 16
XResolution = 800
YResolution = 600
VRefresh = 70
[Networking]
[Identification]
JoinWorkgroup = Workgroup
[UserData]
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
http://support.microsoft.com/default.aspx?scid=kb;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
Reboot
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
Rem This is for those scripts that don't need
the RootDrive.
Rem
If Not Exist "%SystemRoot%\System32\Usrlogn1.cmd"
Goto cont0
Cd /d "%SystemRoot%\Application Compatibility
Scripts\Logon"
Call "%SystemRoot%\System32\Usrlogn1.cmd"
:cont0
Rem
Rem Determine the user's home directory drive
letter. If this isn't
Rem set, exit.
Rem
Cd /d %SystemRoot%\"Application Compatibility
Scripts"
Call RootDrv.Cmd
If "A%RootDrive%A" == "AA" End.Cmd
|
Rem
Rem Map the User's Home Directory to a Drive
Letter
Rem
Net Use %RootDrive% /D >NUL: 2>&1
Subst %RootDrive% "%UserProfile%"
if ERRORLEVEL 1 goto SubstErr
goto AfterSubst
:SubstErr
Subst %RootDrive% /d >NUL: 2>&1
Subst %RootDrive% "%UserProfile%"
:AfterSubst
Rem
Rem Invoke each Application Script. Application
Scripts are automatically
Rem added to UsrLogn2.Cmd when the Installation
script is run.
Rem
If Not Exist %SystemRoot%\System32\UsrLogn2.Cmd
Goto Cont1
Cd Logon
Call %SystemRoot%\System32\UsrLogn2.Cmd
:Cont1
:Done
|
I suggest you to defrag your disk and
....
Reboot "and enjoy"