Problem with regedit -s using sysprep

A

Anguilla

I am creating a build to work on all the company's PC's. I
have put in the necessary drivers etc but run a batch file
created in HKLM/SOFTWARE/MICROSOFT/WINDOWS/CURRENT
VERSION/RUNONCE that will then let me apply hotfixes and
apply patches/apps that are specific to laptops or
desktops.

This batch file of course runs after everything else in
the sysprep is processed but just before the build is
finished.

One of the things that I do is to run regedit-s to apply
laptop power settings to laptops only. However when I run
this, nothing happens. The reg file is fine as it can be
run after reboot.

Can anyone assist?

TIA
 
B

Bill Curtis [MSFT]

Can you post your cmdlines.txt file and your batch file?


- Bill Curtis [MSFT]
“This posting is provided "AS IS" with no warranties, and confers no
rights.”
 
G

Guest

Hi Bill,

I dont use a cmdlines.txt as what gets installed is
variable between desktops and laptops, what I do is before
I sysprep is to insert into the registry a RUNONCE line to
run a file patch.bat on the local machine. This maps
drives, installs hotfixes etc.

This batch file does run properly as far as I can tell and
certainly applies the rest of the fixes.

The part of the batch file concerned is simple:

:: Apply Laptop Power Settings
cd..
regedit /s power.reg
cd\

I hope this helps!

Thanks
 
B

Bill Curtis [MSFT]

Where is power.reg located when this command is run?

- Bill Curtis [MSFT]
“This posting is provided "AS IS" with no warranties, and confers no
rights.”
 
B

Bill Curtis [MSFT]

Try changing your line to read:

regedit /s %WINDIR%\power.reg


- Bill Curtis [MSFT]
“This posting is provided "AS IS" with no warranties, and confers no
rights.”
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top