Highlighted
Absent Member.
Absent Member.
1709 views

Bundle to Modify Default user (ntuser.dat)

Anyone doing this?

You have to be careful to avoid loaded HKU DefualtUser-Hive "hanging" on the Machine. If c:\users\default\ntuser.dat remains opened logon will fail.


My favorite Solution would incorparate a .reg File and the regedit /s command. It simplifies changes. But I receive this Error with every text file Action (ZCM 11.1):

An error occured while performing the "Edit Text File Action" action. The error message is - "{1}".
(the reg-file has to be Ascii: UGTS #36: Registry .reg files and Unicode

This Error happens when the file already exists.


since i have to use "reg load" anyway i do it with a cmd script now:


reg load HKU\dflt "C:\Users\Default\ntuser.dat"
timeout /T 1 /NOBREAK
reg add "HKU\dflt\Softw..." /f
reg add ...
timeout /T 1 /NOBREAK
reg unload HKU\dflt


The "reg unload" does not complete if the "reg add" has not finished completely! This is the reason for the TIMEOUT command.
Labels (2)
0 Likes
1 Reply
Micro Focus Expert
Micro Focus Expert

Re: Bundle to Modify Default user (ntuser.dat)

Yes, I have done this in the past.
I had a process that would update very profile on the PC including
Default so that if I needed an HKCU set for all users, it would scan the
existing profiles, update them as well as grab the Default profile so
new profiles had the setting by default.

On 4/17/2012 11:36 AM, drops wrote:
>
> Anyone doing this?
>
> You have to be careful to avoid loaded HKU DefualtUser-Hive "hanging"
> on the Machine. If c:\users\default\ntuser.dat remains opened logon will
> fail.
>
>
> My favorite Solution would incorparate a .reg File and the regedit /s
> command. It simplifies changes. But I receive this Error with every text
> file Action (ZCM 11.1):
>
> An error occured while performing the "Edit Text File Action" action.
> The error message is - "{1}".
> (the reg-file has to be Ascii: 'UGTS #36: Registry .reg files and
> Unicode' (http://ugts.org/data/ugts/document/2/3/36.aspx)
>
> This Error happens when the file already exists.
>
>
> since i have to use "reg load" anyway i do it with a cmd script now:
>
>
> reg load HKU\dflt "C:\Users\Default\ntuser.dat"
> timeout /T 1 /NOBREAK
> reg add "HKU\dflt\Softw..." /f
> reg add ...
> timeout /T 1 /NOBREAK
> reg unload HKU\dflt
>
>
> The "reg unload" does not complete if the "reg add" has not finished
> completely! This is the reason for the TIMEOUT command.
>
>



--
Craig Wilson - MCNE, MCSE, CCNA
Novell Knowledge Partner

Novell does not officially monitor these forums.

Suggestions/Opinions/Statements made by me are solely my own.
These thoughts may not be shared by either Novell or any rational human.
--
Please give a hearty thumbs up to any post you find helpful!
To find articles by Craig Wilson simply follow the link: Craig Wilson's Tips!
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.