New
#1
Sysprep reset powrr plan settings
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
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
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:
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
(Replace X:\AnswerFile.xml with full path of and name of your answer file.)Code:%windir%\system32\sysprep\sysprep.exe /generalize /oobe /shutdown /unattend:X:\AnswerFile.xml
Use the PersistAllDeviceInstalls in answer file to keep hardware drivers if wanted when the Generalize switch is used with Sysprep command:
KariCode:<settings pass="generalize"> <component name="Microsoft-Windows-PnpSysprep"> <PersistAllDeviceInstalls>true</PersistAllDeviceInstalls> </component> </settings>
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