Remove fs check before resizing a partition.
[snf-image] / snf-image-helper / unattend.xml
index a46113e..d3f5021 100644 (file)
         <component name="Microsoft-Windows-Deployment" 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">\r
             <RunSynchronous>\r
                 <RunSynchronousCommand wcm:action="add">\r
-                    <Description>Extend the filesystem</Description>\r
+                    <Description>Enable Build-in Account</Description>\r
                     <Order>1</Order>\r
+                    <Path>net user administrator /ACTIVE:YES /LOGONPASSWORDCHG:NO /EXPIRES:NEVER /PASSWORDREQ:YES</Path>\r
+                </RunSynchronousCommand>\r
+                <RunSynchronousCommand wcm:action="add">\r
+                    <Description>Change Administrator Password</Description>\r
+                    <Order>2</Order>\r
+                    <Path>C:\Windows\SnfScripts\ChangeAdminPassword.cmd</Path>\r
+                </RunSynchronousCommand>\r
+                <RunSynchronousCommand wcm:action="add">\r
+                    <Description>Extend the filesystem</Description>\r
+                    <Order>3</Order>\r
                     <Path>diskpart.exe /s C:\Windows\SnfScripts\ExtendFilesystem</Path>\r
                 </RunSynchronousCommand>\r
                 <RunSynchronousCommand wcm:action="add">\r
                     <Description>Enable RDP</Description>\r
-                    <Order>2</Order>\r
+                    <Order>4</Order>\r
                     <Path>cmd /C reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f</Path>\r
                 </RunSynchronousCommand>\r
             </RunSynchronous>\r
             <OOBE>\r
                 <HideEULAPage>true</HideEULAPage>\r
             </OOBE>\r
-            <UserAccounts>\r
-                <AdministratorPassword>\r
-                    <Value>Admin1</Value>\r
-                    <PlainText>true</PlainText>\r
-                </AdministratorPassword>\r
-            </UserAccounts>\r
         </component>\r
     </settings>\r
     <cpi:offlineImage cpi:source="catalog:d:/sources/install_windows server 2008 r2 serverstandard.clg" xmlns:cpi="urn:schemas-microsoft-com:cpi" />\r