Posts Tagged Unattended Windows XP

USMT: Taking XP to Windows 7 in a Hurry

usmt-taking-xp-to-windows-7-in-a-hurry

The Directory Services Team has written another great blog on using USMT.

This time it’s about getting from XP to Windows 7 in a Hurry -> without losing your data.

, ,

No Comments

XP/2003: Customize the Default user profile

xp2003-customize-the-default-user-profile

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\

, ,

No Comments

XP/2003/2008/Vista/Win7: Rename the Administrator

xp20032008vistawin7-rename-the-administrator

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

, , , , , ,

No Comments

XP/2003: Enabling the Classic Billboards

xp2003-enabling-the-classic-billboards

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.

,

No Comments

XP/2003: Integrate driver for VMware SCSI Controller

xp2003-integrate-driver-for-vmware-scsi-controller

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—

,

No Comments

XP/2003: HotFix folder Cleanup ($NtUninstall)

xp2003-hotfix-folder-cleanup-ntuninstall

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—

,

No Comments

XP: Remove unwanted icons from the Start Menu

xp-remove-unwanted-icons-from-the-start-menu

I install Windows XP in English and 2 other languages – Danish and German.

I use this script to remove unwanted icons from the Start Menu.

zCFG-DelStartMenuLnk.vbs

—code—

‘ Lars Krogh ’09

Set shell = CreateObject(“WScript.Shell”)
Set fso = CreateObject(“Scripting.FileSystemObject”)

path = shell.SpecialFolders(“AllUsersStartMenu”) & “\Angiv programadgang og -standarder.lnk”
If fso.FileExists(path) then
fso.DeleteFile path, 1
End If

path = shell.SpecialFolders(“AllUsersStartMenu”) & “\Programmzugriff und -standards.lnk”
If fso.FileExists(path) then
fso.DeleteFile path, 1
End If

path = shell.SpecialFolders(“AllUsersStartMenu”) & “\Set Program Access and Defaults.lnk”
If fso.FileExists(path) then
fso.DeleteFile path, 1
End If

path = shell.SpecialFolders(“AllUsersStartMenu”) & “\Windows Catalog.lnk”
If fso.FileExists(path) then
fso.DeleteFile path, 1
End If

path = shell.SpecialFolders(“AllUsersStartMenu”) & “\Windows-Katalog.lnk”
If fso.FileExists(path) then
fso.DeleteFile path, 1
End If

path = shell.SpecialFolders(“AllUsersStartMenu”) & “\Windows Update.lnk”
If fso.FileExists(path) then
fso.DeleteFile path, 1
End If

—code—

I only use it when building the base images.

No Comments

XP/2003: Set install date on the Logon dialog

xp2003-set-install-date-on-the-logon-dialog

In my Task Sequences I call a batch that customize the machine, the current user and the default user profile.

In the batch I create a .reg call Winlogon.reg. It will parse the date and use it for the reghack.

Here is the code:

Winlogon.bat

—code—

rem Lars Krogh ’09
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
del /Q .\Winlogon.reg

—code—

Here is how it looks:

,

No Comments

XP/2003: Change the Logon background

xp2003-change-the-logon-background

There is a lot of great Windows XP reghacks out there, but one I like is this one.

You can set the Windows Logon screen background using this registry key:

Setting Wallpaperstyle=2 will stretch the bitmap.

Read more on TechNet

This is how is looks:

,

No Comments