Solved Sysprep reset powrr plan settings

michelvai

New member
Local time
12:19 PM
Messages
8
Hi,
when i deploy win 7 ovf file on to a laptop the sysprep is resets my customize power plan ( never turen off). Is there a way to prevent it from reset the power settings??

Regards,

Michel v
 

My Computer

OS
windows 7 64 bit enterprice
Hi Michel, welcome to the Seven Forums.

An OOBE boot after the Sysprep is run always setups Windows in an Out-Of-Box-Experience, hence the name OOBE. This means that all settings are set to Windows defaults, including the power plan as well as Windows theme, colors and so on.

If you want your customizations to be kept you have to use the Generalize switch with the Sysprep command. It keeps all customizations done in Audit Mode. Please notice that Generalize also removes all hardware drivers if you have not set PersistAllDeviceInstalls to be TRUE in answer file.

Sysprep command to keep the customizations when the answer file is saved as unattend.xml in C:\Windows\System32\Sysprep folder:

Code:
%windir%\system32\sysprep\sysprep.exe /generalize /oobe

The same command when the answer file is saved on another location or has been named other than unattend.xml:

Code:
%windir%\system32\sysprep\sysprep.exe /generalize /oobe /shutdown /unattend:[B][COLOR="DarkRed"]X:\AnswerFile.xml[/COLOR][/B]
(Replace X:\AnswerFile.xml with full path of and name of your answer file.)

Use the PersistAllDeviceInstalls in answer file to keep hardware drivers if wanted when the Generalize switch is used with Sysprep command:

Code:
<settings pass="generalize"> 
      <component name="Microsoft-Windows-PnpSysprep"> 
            <PersistAllDeviceInstalls>true</PersistAllDeviceInstalls> 
      </component>
</settings>

Kari
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
HP ENVY 17-1150eg
OS
Windows 10 Pro x64 EN-GB
CPU
1.6 GHz Intel Core i7-720QM Processor
Memory
6 GB
Graphics Card(s)
ATI Mobility Radeon HD 5850 Graphics
Sound Card
Beats sound system with integrated subwoofer
Monitor(s) Displays
17" laptop display, 22" LED and 32" Full HD TV through HDMI
Screen Resolution
1600*900 (1), 1920*1080 (2&3)
Hard Drives
Internal: 2 x 500 GB SATA Hard Disk Drive 7200 rpm
External: 2TB for backups, 3TB USB3 network drive for media
Cooling
As Envy runs a bit warm, I have it on a Cooler Master pad
Keyboard
Logitech diNovo Media Desktop Laser (bluetooth)
Mouse
Logitech Performance Mouse MX
Internet Speed
50/10 Mbps VDSL
Antivirus
Windows Defender 4.3.9431.0
Browser
Maxthon 3.5.2., IE11
Hi,

I have tryed it and it doesnt work. my problem is the power plan in the ovf does not match the laptop power plan. becuse as u know the power plan in the laptop have the " when u close the lid..." Is there a way to handle this issue??

Michel V
 

My Computer

OS
windows 7 64 bit enterprice
Back
Top