Wipe Disk Not working - Windows 2008 R2 - Virtual Machine


hi,

i'm trying run sysprep in windows 2008 r2 enterprise edition using unattended file. below code.

<?xml version="1.0" encoding="utf-8"?>  <unattend xmlns="urn:schemas-microsoft-com:unattend">      <settings pass="windowspe">          <component name="microsoft-windows-international-core-winpe" processorarchitecture="amd64" publickeytoken="31bf3856ad364e35" language="neutral" versionscope="nonsxs" xmlns:wcm="http://schemas.microsoft.com/wmiconfig/2002/state" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance">              <setupuilanguage>                  <uilanguage>en-us</uilanguage>              </setupuilanguage>              <uilanguage>en-us</uilanguage>              <inputlocale>0409:00000409</inputlocale>              <systemlocale>en-us</systemlocale>              <layereddriver>1</layereddriver>              <userlocale>en-us</userlocale>          </component>          <component name="microsoft-windows-setup" processorarchitecture="amd64" publickeytoken="31bf3856ad364e35" language="neutral" versionscope="nonsxs" xmlns:wcm="http://schemas.microsoft.com/wmiconfig/2002/state" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance">              <userdata>                  <accepteula>true</accepteula>                  <fullname>loges</fullname>                  <organization>az</organization>              </userdata>              <diskconfiguration>                  <willshowui>onerror</willshowui>                  <disk wcm:action="add">                      <createpartitions>                          <createpartition wcm:action="add">                              <extend>false</extend>                              <order>1</order>                              <type>primary</type>                              <size>100</size>                          </createpartition>                          <createpartition wcm:action="add">                              <extend>true</extend>                              <order>2</order>                              <type>primary</type>                          </createpartition>                      </createpartitions>                      <modifypartitions>                          <modifypartition wcm:action="add">                              <active>true</active>                              <format>ntfs</format>                              <order>1</order>                              <partitionid>1</partitionid>                          </modifypartition>                          <modifypartition wcm:action="add">                              <active>false</active>                              <format>ntfs</format>                              <label>windows</label>                              <letter>c</letter>                              <order>2</order>                              <partitionid>2</partitionid>                          </modifypartition>                      </modifypartitions>                      <diskid>0</diskid>                      <willwipedisk>true</willwipedisk>                  </disk>              </diskconfiguration>              <windowsdeploymentservices>                  <imageselection>                      <installto>                          <diskid>0</diskid>                          <partitionid>2</partitionid>                      </installto>                  </imageselection>              </windowsdeploymentservices>          </component>      </settings>      <settings pass="oobesystem">          <component name="microsoft-windows-shell-setup" processorarchitecture="amd64" publickeytoken="31bf3856ad364e35" language="neutral" versionscope="nonsxs" xmlns:wcm="http://schemas.microsoft.com/wmiconfig/2002/state" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance">              <oobe>                  <hideeulapage>true</hideeulapage>              </oobe>              <useraccounts>                  <administratorpassword>                      <value>dablahmadabaadeamgazaeeazabtagkabgbpahmadabyageadabvahiauabhahmacwb3ag8acgbkaa==</value>                      <plaintext>false</plaintext>                  </administratorpassword>              </useraccounts>          </component>          <component name="microsoft-windows-international-core" processorarchitecture="amd64" publickeytoken="31bf3856ad364e35" language="neutral" versionscope="nonsxs" xmlns:wcm="http://schemas.microsoft.com/wmiconfig/2002/state" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance">              <inputlocale>en-us</inputlocale>              <systemlocale>en-us</systemlocale>              <uilanguage>en-us</uilanguage>              <userlocale>en-us</userlocale>          </component>      </settings>      <settings pass="specialize">          <component name="microsoft-windows-outofboxexperience" processorarchitecture="amd64" publickeytoken="31bf3856ad364e35" language="neutral" versionscope="nonsxs" xmlns:wcm="http://schemas.microsoft.com/wmiconfig/2002/state" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance">              <donotopeninitialconfigurationtasksatlogon>true</donotopeninitialconfigurationtasksatlogon>          </component>          <component name="microsoft-windows-servermanager-svrmgrnc" processorarchitecture="amd64" publickeytoken="31bf3856ad364e35" language="neutral" versionscope="nonsxs" xmlns:wcm="http://schemas.microsoft.com/wmiconfig/2002/state" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance">              <donotopenservermanageratlogon>true</donotopenservermanageratlogon>          </component>      </settings>      <cpi:offlineimage cpi:source="wim:c:/wsim/install.wim#windows server 2008 r2 serverenterprise" xmlns:cpi="urn:schemas-microsoft-com:cpi" />  </unattend>  

during sysprep, disk configuration keep on ignoring. have gone through technet forum threads related issue , following same instructions not working.

i created xml using wsim tool. please let me know how wipe existing partition during sysprep. i'm trying possibilities few weeks. nothing worked out :(

please me resolve issue.

regards,

loges

hi loges,

i found post talking volumes not modified indicated in answer file, check if helpful:

https://social.technet.microsoft.com/forums/windows/en-us/2f9c6ae8-9646-4840-a023-09448f4b7b27/creating-partitions-from-sysprep?forum=w7itproinstall

i have seen posts about workaround, using diskpart commands modify partitions.

here guide:

https://technet.microsoft.com/en-us/library/cc766465(v=ws.10).aspx

best regards,

leo


please remember mark replies answers if , unmark them if provide no help. if have feedback technet support, contact tnmff@microsoft.com.



Windows Server  >  Setup Deployment



Comments

Popular posts from this blog

Error: 0x80073701 when trying to add Print Services Role in Windows 2012 Standard

Disconnecting from a Windows Server 2012 R2 file sharing session on a Windows 7,8,10 machine

Windows 2016 RDS event 1306 Connection Broker Client failed to redirect the user... Error: NULL