Jump to content

I cant get regtweaks to workThis is my first go at doing an unattended


Recommended Posts

This is my first try at doing an unattended install, ive got most things to work after redoing things once or twice :D . The only thing i cant seem to get working is the regtweaks. Here,s what ive done, created a folder called $OEM$ and ive saved regtweaks.reg there. Created an $1 folder inside $OEM$ folder, in $1 folder i have another folder named install were i have created start.cmd containing the following

CLS

@echo off

TITLE Windows XP SP2 - Semi-Unattended Installation

ECHO.

ECHO Over the next few minutes you will see automated installations

ECHO of various software applications, windows updates, and registry

ECHO tweaks being implemented. The computer will restart automatically

ECHO once the whole process has finished!

ECHO.

ECHO Applying Registry Tweaks...

REGEDIT /S %systemdrive%\install\RegTweaks.reg

ECHO.

ECHO Starting installation of Applications

ECHO.

ECHO Installing Kerio Personal Firewall

ECHO Please wait...

start /wait %systemdrive%\Install\Kerio\kerio-kpf-4.2.0-785-win.exe /s /v"/qn REBOOT=1

ECHO.

ECHO Restarting the PC in 1 minute...

shutdown.exe -r -f -t 60 -c "Windows XP will now restart in 1 minute, this will give enough time for the shortcuts to update and for the shell to fully load before its ready to restart!"

ECHO.

ECHO Deleting Temp Installation Files...

RD /S /Q %systemdrive%\Drivers

RD /S /Q %systemdrive%\install

EXIT

It looks to me like i have done as the guide said but the regtweaks.reg dont deploy. Can anyone see were ive gone wrong. Thanks

Link to comment
Share on other sites


I don't know, from where you call the start.cmd, but perhaps the following brings in a little light:

The Unattended-Guide uses the cmdlines.txt to import the regtweks, because at that moment, there only exists the default user and so all the tweaks, even those concerning HKCU are deployed for every user.

Are in you're way none of the tweaks applied or perhaps only to the current user? And it would be helpful to know, from where the start.cmd is called.

Link to comment
Share on other sites

Doc Symbiosis i read your reply this morning and ive spent the day trying to get regtweaks to work without any luck. The start.cmd is called from this entry in the winnt.sif

[GuiRunOnce]

%systemdrive%\install\start.cmd

I know i said everything with the unattended install had gone well but ive noticed the administrator account does not seem to be being created even though i have this entry in the winnt.sif file

[GuiUnattended]

AdminPassword=1f4bd607fae0e57baad3b435b51404ee7296e67e45728e85f099194ccb156bae

EncryptedAdminPassword=Yes

OEMSkipRegional=1

TimeZone=85

OemSkipWelcome=1

I may have to start from scratch with this unattended project.

Link to comment
Share on other sites

Doc Symbiosis i read your reply this morning and ive spent the day trying to get regtweaks to work without any luck. The start.cmd is called from this entry in the winnt.sif

[GuiRunOnce]

%systemdrive%\install\start.cmd

I know i said everything with the unattended install had gone well but ive noticed the administrator account does not seem to be being created even though i have this entry in the winnt.sif file

[GuiUnattended]

AdminPassword=1f4bd607fae0e57baad3b435b51404ee7296e67e45728e85f099194ccb156bae

EncryptedAdminPassword=Yes

OEMSkipRegional=1

TimeZone=85

OemSkipWelcome=1

I may have to start from scratch with this unattended project.

You cant do everything with regtweaks alone.

please create a user.cmd

cmdow @ /HID
@Echo Off
net user qwerty1 password /add
net localgroup Administrators qwerty1 /add
net accounts /maxpwage:unlimited
REGEDIT /S autologin.reg

EXIT

autologin.reg

Windows Registry Editor Version 5.00

;This will allow you to autologin.
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"DefaultUserName"="qwerty1"
"DefaultPassword"="password"
"AutoAdminLogon"="1"

You run user.cmd in cmdlines.txt

[COMMANDS]
"user.cmd"

i create a new account because the "administrator" account disappears from logon when create a second account.

Edited by SolidasRock
Link to comment
Share on other sites

Thanks for the tips SolidasRock, but i had already created those files you mentioned. Looks like ive solved the regtweaks problem, it seems the file i created and filled with various tweaks i had got from here was not a registry file. I had copied and pasted the tweaks then renamed the file to "regtweaks.reg" , but being new to this ive probably made a mistake somewhere. I thought i would try and run it manually and see if it applied the tweaks, thats when i got the error box saying it was not a registry file. Ive since created another reg file with UARegistryTweakage and it seems to have done the trick apart from some of the tweaks not being applied, which i will explain below. Here is the contents of the tweaks file (Bottom of Post) i created above. The one in green is the firewall entry thats only sort of half applied and the one in orange the one that has not been applied. Maybe someone may spot a problem with them. One piece of software i am installing is "Kerio firewall" it installs no problem, the problem is after the unattended install finishes and windows loads i get windows firewall box asking if i want to block or allow it. Now according to my regtweaks ive stopped the windows firewall from running.

As i said above kerio installs but for some reason not on the administrators account, even though i have the Regtweaks.reg file in the $OEM$ folder. So it should apply to all accounts, is that correct.

The last problem is with the administrators account, after ive logged on with the user account ive created call it (qwerty) for the first time, the admin account does not show up in my computer or in documents and settings. I done a restart and logged in to the administrators account and looked in my computer and the two user accounts are present administrator and qwerty/ I done another restart and logged into the qwerty account now administrator account is showing in my computer. Whats happening there and how can i fix the problem.

GeorgeOfDaJungle, i can understand your question over the siting of the " regtweaks.reg file " so here,s an extract from the guide im following explaining the reason for its position.

Open up Notepad, and create your file. When you are done, save it as regtweaks.reg. From here, you can do two things with it, by where you save the file to.

Option #1: If you save it to C:\XPCD\$OEM$ folder, it will apply to any and all user accounts created on the machine. If you decide on this, you need to also add one line to your cmdlines.txt file in the C:\XPCD\$OEM$\ folder:

"REGEDIT /S regtweaks.reg"

Option #2: If you save it to the C:\XPCD\$OEM$\$1\install\ folder, it will apply only to the account you created in this project on Page 3. We will be creating another batch file later on that can reference the regtweak.reg if you put it here.

Windows Registry Editor Version 5.00

;============================================================================

;====================== XP SERVICE PACK 2 TWEAKS =============================

;============================================================================

; Override Windows Firewall

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Security Center]

"FirewallOverride"=dword:00000001

;============================================================================

;=========================== SERVICES TWEAKS ================================

;============================================================================

; Alerter Service

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Alerter]

"Start"=dword:00000004

; Automatic Updates Service

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\wuauserv]

"Start"=dword:00000003

;============================================================================

;================ SOFTWARE / INTERNET EXPLORER TWEAKS =======================

;============================================================================

; Disable Auto-Complete Prompt

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\IntelliForms]

"AskUser"=dword:00000000

; Max Internet Explorer Simultaneous Downloads To 10

[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Internet Settings]

"MaxConnectionsPer1_0Server"=dword:0000000a

"MaxConnectionsPerServer"=dword:0000000a

;============================================================================

;===================== LOGON / AUTHENTIFICATION TWEAKS =======================

;============================================================================

; Show Administrator Account on Welcome Screen

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList]

"Administrator"=dword:00000001

;============================================================================

;======================= STARTUP / SHUTDOWN TWEAKS =========================

;============================================================================

; Disable Automatic Restart in the Event of a BSOD

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CrashControl]

"AutoReboot"=dword:00000000

;============================================================================

;======================= GENERAL WINDOWS TWEAKS ===========================

;============================================================================

; Show Hidden Files and Folders

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]

"Hidden"=dword:00000001

; Show File Extensions (.exe/.bmp etc.)

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]

"HideFileExt"=dword:00000000

; Disable Windows Tour

[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Applets\Tour]

"RunCount"=dword:00000000

; Set Keyboard Num-Lock to be ON by Default

[HKEY_CURRENT_USER\Control Panel\Keyboard]

"InitialKeyboardIndicators"="2"

; Remove Windows Alexa Spyware

[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Extensions\{c95fe080-8f5d-11d2-a20b-00aa003c157a}]

;============================================================================

;============================ SECURITY TWEAKS ===============================

;============================================================================

; Disable Default Hidden Shares

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\parameters]

"AutoShareWks"=dword:00000000

"AutoShareServer"=dword:00000000

;============================================================================

;============================ DESKTOP TWEAKS ===============================

;============================================================================

; Remove Shotcut To.. Prefix on Desktop Shorcut Names

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer]

"Link"=hex:00,00,00,00

; Remove Arrow Overlay from Desktop Shortcuts

[HKEY_CLASSES_ROOT\lnkfile]

"IsShortcut"=-

;============================================================================

;====================== SYSTEM PERFORMANCE TWEAKS =========================

;============================================================================

; Speed up Opening of My Computer and Windows Explorer

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\stisvc]

"Start"=dword:00000004

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]

"NoSaveSettings"=dword:00000000

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]

"NoNetCrawling"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer]

"NoRemoteRecursiveEvents"=dword:00000001

; Speed up Shutdown

[HKEY_CURRENT_USER\Control Panel\Desktop]

"AutoEndTasks"="1"

"HungAppTimeout"="100"

"WaitToKillAppTimeout"="1000"

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control]

"WaitToKillServiceTimeout"="1000"

; Speed Up Browsing Remote Computers

[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\RemoteComputer\NameSpace\{D6277990-4C6A-11CF-8D87-00AA0060F5BF}]

[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\RemoteComputer\NameSpace\{2227A280-3AEA-1069-A2DE-08002B30309D}]

; Optimize Core System Performance

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management]

"DisablePagingExecutive"=dword:00000001

;============================================================================

;======================= START MENU / TASKBAR TWEAKS =======================

;============================================================================

; Show QuickLaunch on Taskbar

[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Streams\Desktop]

"TaskbarWinXP"=hex:0c,00,00,00,08,00,00,00,02,00,00,00,00,00,00,00,b0,e2,2b,\

d8,64,57,d0,11,a9,6e,00,c0,4f,d7,05,a2,22,00,1c,00,0a,01,00,00,1a,00,00,00,\

01,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,4c,00,00,00,01,14,02,00,00,\

00,00,00,c0,00,00,00,00,00,00,46,83,00,00,00,10,00,00,00,a0,b0,48,5e,89,8d,\

bd,01,00,d8,9e,e4,2a,8d,bd,01,00,45,fe,5e,89,8d,bd,01,00,00,00,00,00,00,00,\

00,01,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,13,01,14,00,1f,0f,e0,4f,\

d0,20,ea,3a,69,10,a2,d8,08,00,2b,30,30,9d,19,00,23,44,3a,5c,00,00,00,00,00,\

00,00,00,00,00,00,00,00,00,00,00,00,cd,97,15,00,31,00,00,00,00,00,af,24,5c,\

b9,10,80,57,69,6e,6e,74,00,00,20,00,31,00,00,00,00,00,af,24,a3,b9,10,00,50,\

72,6f,66,69,6c,65,73,00,50,52,4f,46,49,4c,45,53,00,19,00,31,00,00,00,00,00,\

c1,24,08,92,10,00,69,65,35,30,30,2e,30,30,30,00,00,28,00,31,00,00,00,00,00,\

c1,24,08,92,10,00,41,70,70,6c,69,63,61,74,69,6f,6e,20,44,61,74,61,00,41,50,\

50,4c,49,43,7e,31,00,21,00,31,00,00,00,00,00,c5,22,9d,91,10,00,4d,69,63,72,\

6f,73,6f,66,74,00,4d,49,43,52,4f,53,7e,31,00,29,00,31,00,00,00,00,00,d3,22,\

32,a6,10,00,49,6e,74,65,72,6e,65,74,20,45,78,70,6c,6f,72,65,72,00,49,4e,54,\

45,52,4e,7e,31,00,24,00,31,00,00,00,00,00,db,22,76,ba,10,00,51,75,69,63,6b,\

20,4c,61,75,6e,63,68,00,51,55,49,43,4b,4c,7e,31,00,00,00,8d,00,00,00,1c,00,\

00,00,01,00,00,00,1c,00,00,00,36,00,00,00,0d,f0,ad,ba,8c,00,00,00,1a,00,00,\

00,03,00,00,00,e7,18,2d,23,10,00,00,00,49,45,35,30,30,5f,58,31,43,00,43,3a,\

5c,57,49,4e,4e,54,5c,50,72,6f,66,69,6c,65,73,5c,49,45,35,30,30,2e,30,30,30,\

5c,41,70,70,6c,69,63,61,74,69,6f,6e,20,44,61,74,61,5c,4d,69,63,72,6f,73,6f,\

66,74,5c,49,6e,74,65,72,6e,65,74,20,45,78,70,6c,6f,72,65,72,5c,51,75,69,63,\

6b,20,4c,61,75,6e,63,68,00,00,10,00,00,00,05,00,00,a0,1a,00,00,00,a3,00,00,\

00,00,00,00,00,08,00,00,00,02,00,00,00,cc,00,00,00,01,00,00,00,03,00,00,00,\

4a,00,00,00,01,00,00,00,40,00,32,00,e6,01,00,00,c4,24,15,9f,20,00,4c,61,75,\

6e,63,68,20,49,6e,74,65,72,6e,65,74,20,45,78,70,6c,6f,72,65,72,20,42,72,6f,\

77,73,65,72,2e,6c,6e,6b,00,4c,41,55,4e,43,48,7e,32,2e,4c,4e,4b,00,00,00,40,\

00,00,00,02,00,00,00,36,00,32,00,48,02,00,00,c4,24,15,9f,20,00,4c,61,75,6e,\

63,68,20,4f,75,74,6c,6f,6f,6b,20,45,78,70,72,65,73,73,2e,6c,6e,6b,00,4c,41,\

55,4e,43,48,7e,31,2e,4c,4e,4b,00,00,00,36,00,00,00,00,00,00,00,2c,00,32,00,\

51,00,00,00,ec,22,46,39,20,00,53,68,6f,77,20,44,65,73,6b,74,6f,70,2e,73,63,\

66,00,53,48,4f,57,44,45,7e,31,2e,53,43,46,00,00,00,52,00,00,00,e0,00,00,00,\

00,00,00,00,16,00,00,00,00,00,00,00,00,00,00,00,16,00,00,00,00,00,00,00,01,\

00,00,00,01,00,00,00,aa,4f,28,68,48,6a,d0,11,8c,78,00,c0,4f,d9,18,b4,37,02,\

00,00,e0,00,00,00,00,00,00,00,16,00,00,00,00,00,00,00,00,00,00,00,16,00,00,\

00,00,00,00,00,01,00,00,00

; Sort Start Menu and Favorites in Alphabetical Order

[-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrder]

; Add Administrative Tools to Start Menu

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]

"Start_AdminToolsRoot"=dword:00000000

Link to comment
Share on other sites

@qwerty1:

As i said above kerio installs but for some reason not on the administrators account
what you mean by not created? not as user(administrator)? or this accounts(administrator) settings?

i am pretty sure that your administartor account is created as "user(administrator)" in usermanager.

and

The last problem is with the administrators account,

after ive logged on with the user account ive created call it

(qwerty) for the first time, the admin account does not show up in my

computer or in documents and settings. I done a restart and logged

in to the administrators account and looked in my computer and the two

user accounts are present administrator and qwerty/ I done another restart

and logged into the qwerty account now administrator account is showing in my computer.

Whats happening there and how can i fix the problem.

The systemfolders for a account are only created after first logon of that account even if its a administrator account.

i suggest to logon once administartor to create the needed directories and settings.

Use therefore the autologon in

[GuiUnattended]
AutoLogonCount = 1
Saddly this can not be done id you use the
[GuiUnattended]
EncryptedAdminPassword = Yes

Comments

The default value is No.

• If you use this entry to install an encrypted Administrator password during an unattended installation,

Th setup disables Autologon

@SolidasRock:

"i create a new account because the "administrator" account disappears from logon when create a second account."

Show Administrator on the Welcome Screen (Windows XP Professional)

When logging into Windows the Administrator account is not normally available on the Welcome screen.

This tweak adds it to the Welcome screen and allows you to login like a normal account.

System Key: [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\
SpecialAccounts\UserList]
Value Name: Administrator
Data Type: REG_DWORD (DWORD Value)
Value Data: (1 = show Administrator)

hope it get's u wiser...

also try to use the quote and code tags more often

dv

Edited by visaversa
Link to comment
Share on other sites

Thanks for the replies GeorgeOfDaJungle and visaversa, Ive managed to get my Regtweaks to work and sorted the admin account out. Kerio installs on the second account and is in the start menu, when i logon to admin account kerio loads up and icon appears on the task bar but doesnt appear in the start menu. I seem to remember reading somewhere that kerio is only controlable from one account so that would explain it. I am slowly sorting my unattended install out and will get there in the end i hope . :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...