Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Vista Newsgroups > Vista account administration

Vista Startup Script problem (loading registry hive issue)

Closed Thread
 
Thread Tools Display Modes
Old 02-25-2008   #1 (permalink)
ejmichaud
Guest


 

Vista Startup Script problem (loading registry hive issue)

I have a VBS startup script that works fine with Win 2000, XP, 2003
but will not function properly on Vista. The startup script's purpose
is to load the registry hive of the Default User (Default for Vista)
profile, make a change and unload the hive. If I manually run the VBS
script on Vista it works fine, however when I run it as a startup
script it fails. Specifically the startup script is failing at
loading the default user profile hive.

Does anyone know what has changed in Windows Vista that prevents the
loading of a registry hive durring a startup script? I have tried
putting in a delay, however this didn't correct the issue. I am using
reg.exe to load the hive.

Anyone with any ideas?
Old 02-26-2008   #2 (permalink)
ejmichaud
Guest


 

Re: Vista Startup Script problem (loading registry hive issue)

After a lot of testing I was finally get a handle on what the problem
is but I don't know how to fix it. If I have the following (test)
script run as a startup script:reg load HKLM\Defuser C:\test
\ntuser.dat

When the startup script is processed it displays the message: Error:
A required privilege is not held by the client[/color]

As the script above shows I have created a C:\test folder and placed
the ntuser.dat file into that folder. I have given Everyone & System
full control of the folder. I have also given Everyone & System the
"Act as part of the operating system" privilege.

Does anyone have any ideas on what privilege and what account needs
the privilege to accomplish loading a registry hive from a startup
script on a Windows Vista computer?
Old 02-27-2008   #3 (permalink)
jamesvdm
Guest


 

Re: Vista Startup Script problem (loading registry hive issue)

There's a lot of info here that may help you work around the issue -

http://www.boot-land.net/forums/Runn...ves-t1703.html

Good luck.

James

"ejmichaud@xxxxxx" wrote:
Quote:

> After a lot of testing I was finally get a handle on what the problem
> is but I don't know how to fix it. If I have the following (test)
> script run as a startup script:reg load HKLM\Defuser C:\test
> \ntuser.dat
>
> When the startup script is processed it displays the message: Error:
> A required privilege is not held by the client

>
> As the script above shows I have created a C:\test folder and placed
> the ntuser.dat file into that folder. I have given Everyone & System
> full control of the folder. I have also given Everyone & System the
> "Act as part of the operating system" privilege.
>
> Does anyone have any ideas on what privilege and what account needs
> the privilege to accomplish loading a registry hive from a startup
> script on a Windows Vista computer?
>[/color]
Old 02-27-2008   #4 (permalink)
ejmichaud
Guest


 

Re: Vista Startup Script problem (loading registry hive issue)

On Feb 27, 7:38*am, jamesvdm <james...@xxxxxx>
wrote:
Quote:

> There's a lot of info here that may help you work around the issue -
>
> http://www.boot-land.net/forums/Runn...der-Vista-to-l...
>
> Good luck.
>
> James
I reviewed the information on the link above and found no useful
solution to this problem I have run into. I have tried this on
several Vista machines, all with exactly the same results.

Here is what I did in detail:
1) Install Vista (Windows Vista Business edition), computer added to
Domain
2) From Local group policy (gpedit.msc) set the startup script to run
the following code:
REG load HKU\DefUser C:\Users\Default\ntuser.dat
Pause
3) From Local group policy set "Computer Configuration\Administrative
Templates\System\Logon\Always wait for the network at computer startup
and logon" = Enabled
4) From Local group policy set "Computer Configuration\Administrative
Templates\System\Scripts\Run startup scripts asynchronously" =
Disabled
5) From Local group policy set "Computer Configuration\Administrative
Templates\System\Scripts\Run startup scripts visible" = Enabled
6) Reboot

On boot I see the following consistently on all VISTA computers I have
tested:
---- Start of output ----
C:\windows\system32\GroupPolicy\Machine\Scripts\Startup>reg load HKU
\DefUser C:\Users\Default\ntuser.dat
ERROR: A required privilege is not held by the client.

C:\windows\system32\GroupPolicy\Machine\Scripts\Startup>pause
Press any key to continue . . .
---- End of output ----

After logging in, if I run the same script (Run as Administrator) it
loads the hive as expected.

There seems to be some permission or privilege that the SYSTEM account
doesn't have that is required to load a registry hive with a startup
script on a VISTA machine.
Old 02-27-2008   #5 (permalink)
jamesvdm
Guest


 

Re: Vista Startup Script problem (loading registry hive issue)

Are you able to script 'run as' to run the command as an administrator and
review what error you receive? This will allow you to pass the username and
password of an account with higher access.

James

"ejmichaud@xxxxxx" wrote:
Quote:

> On Feb 27, 7:38 am, jamesvdm <james...@xxxxxx>
> wrote:
Quote:

> > There's a lot of info here that may help you work around the issue -
> >
> > http://www.boot-land.net/forums/Runn...der-Vista-to-l...
> >
> > Good luck.
> >
> > James
>
> I reviewed the information on the link above and found no useful
> solution to this problem I have run into. I have tried this on
> several Vista machines, all with exactly the same results.
>
> Here is what I did in detail:
> 1) Install Vista (Windows Vista Business edition), computer added to
> Domain
> 2) From Local group policy (gpedit.msc) set the startup script to run
> the following code:
> REG load HKU\DefUser C:\Users\Default\ntuser.dat
> Pause
> 3) From Local group policy set "Computer Configuration\Administrative
> Templates\System\Logon\Always wait for the network at computer startup
> and logon" = Enabled
> 4) From Local group policy set "Computer Configuration\Administrative
> Templates\System\Scripts\Run startup scripts asynchronously" =
> Disabled
> 5) From Local group policy set "Computer Configuration\Administrative
> Templates\System\Scripts\Run startup scripts visible" = Enabled
> 6) Reboot
>
> On boot I see the following consistently on all VISTA computers I have
> tested:
> ---- Start of output ----
> C:\windows\system32\GroupPolicy\Machine\Scripts\Startup>reg load HKU
> \DefUser C:\Users\Default\ntuser.dat
> ERROR: A required privilege is not held by the client.
>
> C:\windows\system32\GroupPolicy\Machine\Scripts\Startup>pause
> Press any key to continue . . .
> ---- End of output ----
>
> After logging in, if I run the same script (Run as Administrator) it
> loads the hive as expected.
>
> There seems to be some permission or privilege that the SYSTEM account
> doesn't have that is required to load a registry hive with a startup
> script on a VISTA machine.
>
Old 03-11-2008   #6 (permalink)
ejmichaud
Guest


 

Re: Vista Startup Script problem (loading registry hive issue)

Turns out that the answer is SP1 for vista. After lots of testing I
found that without SP1 a registry hive can't be loaded from a startup
script. However, with SP1 installed, a startup script can load a
registry hive without any issues.

Happy registry hive loading
Eric Michaud

Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Vista Loading Stuff After Startup For 4mins sutaz Vista General 1 05-02-2008 12:04 PM
Script - Registry Redirection Issue dekac99 Vista installation & setup 0 02-12-2008 09:05 AM
Vista Registry - load hive rplank@gmail.com Vista General 4 05-10-2007 01:07 PM
Problem loading drivers on startup kadi1591 Vista hardware & devices 2 05-03-2007 08:50 AM
Loading registry hive A. Petitjean PowerShell 0 03-22-2007 03:29 AM








Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50