I think, my question is very basic and I suppose many will think, that I do not know what a search egine is
But, I really can not explain, where my fault is...
I use the following batch to add my tweaks:
Quote
@echo off
title Applying Tweaks...
rem ###
rem Loading Default User Hive
rem ###
reg load HKEY_USERS\RDefault "%allusersprofile%\..\Default User\ntuser.dat"
rem ###
rem Adding Tweaks
rem ###
for /f %%a in ('dir /b Tweaks\*.reg') do reg import "Tweaks\%%a"
rem ###
rem Unloading Hive
rem ###
reg unload HKEY_USERS\RDefault
title Applying Tweaks...
rem ###
rem Loading Default User Hive
rem ###
reg load HKEY_USERS\RDefault "%allusersprofile%\..\Default User\ntuser.dat"
rem ###
rem Adding Tweaks
rem ###
for /f %%a in ('dir /b Tweaks\*.reg') do reg import "Tweaks\%%a"
rem ###
rem Unloading Hive
rem ###
reg unload HKEY_USERS\RDefault
It searches for *.reg patches and addes it to the default user profile,
It is meant to search fpr *.reg files an add them to the default user hive.
In my regfiles I replaced everything starting with "[HKEY_CURRENT_USER\" with "[HKEY_USERS\RDefault\", a I thought, this would do it.
Here is a sample regfile:
Quote
Windows Registry Editor Version 5.00
[HKEY_USERS\RDefault\Control Panel\Desktop]
"PaintDesktopVersion"=dword:00000001
;Arbeitsplatz VOR Eigenen Dateien
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{450D8FBA-AD25-11D0-98A8-0800361B1103}]
"SortOrderIndex"=dword:00000054
[HKEY_USERS\RDefault\Control Panel\Desktop]
"PaintDesktopVersion"=dword:00000001
;Arbeitsplatz VOR Eigenen Dateien
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{450D8FBA-AD25-11D0-98A8-0800361B1103}]
"SortOrderIndex"=dword:00000054
I then tried to start my batch using cmdlines. But it did not work, and after some net research I knew, that the .DEFAULT-Registry Hive gets copied to the Default User-Profile at T-12. So the batch can not work properly, as the file ntuser.dat does not exist at T-13.
So what can I do to add my tweaks? There should be a way to just alter the default user hive (C:\Documents and Setting\Default User\NTUSER.DAT) to apply my tweaks to all my users...



Help
Back to top








