Jump to content

Recommended Posts

Posted

Hello,

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:

@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

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:

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

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...


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...