Archive for category Unattended
USMT: Understanding USMT 4.0 Behavior with UEL and UE
Posted by Lars Krogh in Unattended on 01/12/2009
On the Microsoft Enterprise Platform Support Directory Services Team blog (name is too damn long) there’s a great blog on using USMT 4.0 with UEL and UE as argument.
Read the post here
Win7: Windows XP to Windows 7 Migration guide
Posted by Lars Krogh in Unattended Windows 7, Unattended Windows XP on 18/09/2009
Check Microsoft’s ‘From Windows XP to Windows 7′ walk through guide here
MDT 2010: Change Windows 7 setup background
Posted by Lars Krogh in MDT 2010, Unattended Windows 7 on 20/08/2009
Within \\<MDT Deployment Share>\Operating Systems\Windows 7 Pro x86\sources
Drop a .bmp called ‘background_cli.bmp’ – I have mine in 1024×768.
XP/2003: Customize the Default user profile
Posted by Lars Krogh in Unattended Windows 2003, Unattended Windows XP on 11/08/2009
I use a lot of RegTweaks during base image builds.
Some I have from Kellys Korner – others from MSFN’s Unattended Windows guide
I import the RegTweaks (HKCU.reg, HKLM.reg, HKU.reg, NTUSER.reg and Winlogon.reg (created at runtime)) with this batch:
zCFG-Customize.bat
—code—
copy /Y “%0\..\HKCU.reg” “%SystemDrive%\Documents and Settings\Default User\”
copy /Y “%0\..\HKLM.reg” “%SystemDrive%\Documents and Settings\Default User\”
copy /Y “%0\..\HKU.reg” “%SystemDrive%\Documents and Settings\Default User\”
copy /Y “%0\..\NTUSER.reg” “%SystemDrive%\Documents and Settings\Default User\”
copy /Y “%0\..\XXXXX.bmp” “%WINDIR%\Web\Wallpaper\” & cd “%SystemDrive%\Documents and Settings\Default User\”
echo Windows Registry Editor Version 5.00> .\Winlogon.reg
echo.>> Winlogon.reg
echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]>> .\Winlogon.reg
echo “LogonPrompt”=”DeployWindows.net: Install date %date%”>> .\Winlogon.reg
echo.>> .\Winlogon.reg
regedit /s .\Winlogon.reg
regedit /s .\HKCU.reg
regedit /s .\HKLM.reg
regedit /s .\HKU.reg
reg load HKLM\TempHive “%SystemDrive%\Documents and Settings\Default User\ntuser.dat”
regedit /s .\NTUSER.reg
reg unload HKLM\TempHive
del /Q .\Winlogon.reg
del /Q .\HKCU.reg
del /Q .\HKLM.reg
del /Q .\NTUSER.reg
del /Q .\HKU.reg
—code—
I place the files in %SCRIPTROOT%\Unattended\XP\
and
%SCRIPTROOT%\Unattended\2003\
XP/2003/2008/Vista/Win7: Rename the Administrator
Posted by Lars Krogh in Unattended Windows 2003, Unattended Windows 2008, Unattended Windows 7, Unattended Windows XP on 11/08/2009
I rename the Administrator account as part of my OS configuration steps (I use one username for my desktop installs and another username for my server installs).

These are the steps:
renuser Administrator “the-new-adminname” (download renuser from www.ntfaq.com)
reg ADD “HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon” /V DefaultUserName /T REG_SZ /F /D “the-new-adminname”
reg ADD “HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon” /V AltDefaultUserName /T REG_SZ /F /D “the-new-adminname”
net user /add Administrator “a-strong-password”
net user Administrator /active:no
2008: Unattended.xml customizations
Posted by Lars Krogh in Unattended Windows 2008 on 11/08/2009
In the <settings pass=”specialize”> pass:
Enable Remote Desktop
<component name=”Microsoft-Windows-TerminalServices-LocalSessionManager” processorArchitecture=”amd64″ publicKeyToken=”31bf3856ad364e35″ language=”neutral” versionScope=”nonSxS” xmlns:wcm=”http://schemas.microsoft.com/WMIConfig/2002/State” xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance“>
<fDenyTSConnections>false</fDenyTSConnections>
</component>
Disable Internet Explorer hardening for the Administrator
<component name=”Microsoft-Windows-IE-ESC” processorArchitecture=”amd64″ publicKeyToken=”31bf3856ad364e35″ language=”neutral” versionScope=”nonSxS” xmlns:wcm=”http://schemas.microsoft.com/WMIConfig/2002/State” xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance“>
<IEHardenAdmin>false</IEHardenAdmin>
</component>
Disable Server Manager from Opening Automatically on First Boot
<component name=”Microsoft-Windows-ServerManager-SvrMgrNc” processorArchitecture=”amd64″ publicKeyToken=”31bf3856ad364e35″ language=”neutral” versionScope=”nonSxS” xmlns:wcm=”http://schemas.microsoft.com/WMIConfig/2002/State” xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance“>
<DoNotOpenServerManagerAtLogon>true</DoNotOpenServerManagerAtLogon>
</component>
Disable Windows OOBE experience
<component name=”Microsoft-Windows-OutOfBoxExperience” processorArchitecture=”amd64″ publicKeyToken=”31bf3856ad364e35″ language=”neutral” versionScope=”nonSxS” xmlns:wcm=”http://schemas.microsoft.com/WMIConfig/2002/State” xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance“>
<DoNotOpenInitialConfigurationTasksAtLogon>true</DoNotOpenInitialConfigurationTasksAtLogon>
</component>
XP/2003: Enabling the Classic Billboards
Posted by Lars Krogh in Unattended Windows 2003, Unattended Windows XP on 10/08/2009
In Windows setup I enabling the Classic Billboards – why? cause it’s old school and I like old school.
Here is the how-to:
In i386\ delete the files:
winntbbu.dll
winntbbu.dl_
Now edit txtsetup.sif.
Find all instances of winntbbu.dll, and delete the ENTIRE line that it’s on.
Do the same for the file dosnet.inf, and delete all instances winntbbu.dll you find in there as well.
XP/2003: Integrate driver for VMware SCSI Controller
Posted by Lars Krogh in Unattended Windows 2003, Unattended Windows XP on 10/08/2009
I build my base images in WMware Workstation (soon in MS Hyper-V).
Before building a Windows XP and Windows 2003 base image I integrate the VMware SCSI Controller driver into the original source files.
Here is the how-to:
1. Download driver
2. Makecab of *.inf, *.sys, *.cat
3. Drop files into \i386
4. Edit txtsetup.sif and Dosnet.inf
—txtsetup.sif start—
[SourceDisksFiles]
vmscsi.cat = 1,,,,,,,1,0,0
vmscsi.inf = 1,,,,,,,1,0,0
vmscsi.sys = 1,,,,,,,1,0,0
vmscsi.sys = 1,,,,,,4_,4,1,,,1,4
[HardwareIdsDatabase]
PCI\VEN_104B&DEV_1040 = “vmscsi”
[SCSI.load]
vmscsi = vmscsi.sys,4
[FileFlags]
vmscsi.sys = 16
[scsi]
vmscsi = “VMware SCSI Controller”
—txtsetup.sif end—
—Dosnet.inf start—
[FloppyFiles.1]
d1,vmscsi.sys
[Files]
d1,vmscsi.cat
d1,vmscsi.inf
d1,vmscsi.sys
—Dosnet.inf end—
XP/2003: HotFix folder Cleanup ($NtUninstall)
Posted by Lars Krogh in Unattended on 07/08/2009
I use a script (Z-InstallXPX86SP2Updates.wsf) by Johan Arwidmark, so I can control, which updates to install during base image installs.
Just after the patching (and before create the image) I delete the $NtUninstall folders in the Windows root and the registry entries with this script:
HFCleanup.bat
—code—
rem Lars Krogh ’09
attrib -r -h -s -a /S /D “%systemroot%\$*”
attrib -r -h -s -a /S /D “%systemroot%\$hf_mig$\K*”
FOR /D %%K IN (%systemroot%\$hf_mig$\K*) DO (
reg delete “HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\%%~nxK” /f & (
DEL /f /q “%systemroot%\%%~nxK.log” ))
FOR /D %%$ IN (%systemroot%\$*) DO rmdir /s /q “%%$”
—code—
