Create media for automated unattended install of Windows 10  

Page 83 of 99 FirstFirst ... 3373818283848593 ... LastLast

  1. Posts : 5
    WIN 10 PRO
       #820

    this is my autounatended.xml file which used to work good in windows 10 (1809)
    recently I updated my iso for 21H2 and now this XML isn't working anymore.
    I created the XML again from scratch but got stuck at offlineservicing.
    receiving an error .

    needed o know what wrong am i doing.

    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <unattend xmlns="urn:schemas-microsoft-com:unattend">
        <servicing>
            <package action="configure">
                <assemblyIdentity name="Microsoft-Windows-Foundation-Package" version="10.0.19041.1" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="" />
                <selection name="TIFFIFilter" state="true" />
                <selection name="TelnetClient" state="true" />
                <selection name="SimpleTCP" state="true" />
                <selection name="SMB1Protocol" state="true" />
                <selection name="SMB1Protocol-Client" state="true" />
                <selection name="Printing-XPSServices-Features" state="false" />
                <selection name="NetFx3" state="true" />
                <selection name="LegacyComponents" state="true" />
                <selection name="DirectPlay" state="true" />
            </package>
        </servicing>
        <settings pass="windowsPE">
            <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>
                    <ProductKey>
                        <Key>VK7JG-NPHTM-C97JM-9MPGT-3V66T</Key>
                        <WillShowUI>OnError</WillShowUI>
                    </ProductKey>
                    <AcceptEula>true</AcceptEula>
                    <FullName>Angel&apos;s Photography</FullName>
                    <Organization>Shuter Click</Organization>
                </UserData>
                <ImageInstall>
                    <OSImage>
                        <InstallFrom>
                            <MetaData wcm:action="add">
                                <Key>/IMAGE/NAME</Key>
                                <Value>Windows 10 Pro</Value>
                            </MetaData>
                        </InstallFrom>
                        <InstallToAvailablePartition>false</InstallToAvailablePartition>
                        <WillShowUI>OnError</WillShowUI>
                    </OSImage>
                </ImageInstall>
                <EnableFirewall>false</EnableFirewall>
                <UseConfigurationSet>true</UseConfigurationSet>
            </component>
        </settings>
        <settings pass="offlineServicing">
            <component name="Microsoft-Windows-LUA-Settings" 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">
                <EnableLUA>false</EnableLUA>
            </component>
        </settings>
        <settings pass="generalize">
            <component name="Microsoft-Windows-Security-SPP" 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">
                <SkipRearm>1</SkipRearm>
            </component>
        </settings>
        <settings pass="specialize">
            <component name="Microsoft-Windows-SystemRestore-Main" 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">
                <DisableSR>1</DisableSR>
            </component>
            <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">
                <OEMInformation>
                    <Logo>\windows\system32\oobe\info\nvidia_badge.bmp</Logo>
                    <Manufacturer>NVIDIA</Manufacturer>
                    <Model>The Mean Machine!</Model>
                </OEMInformation>
                <ComputerName>MATRIX</ComputerName>
                <CopyProfile>true</CopyProfile>
                <DisableAutoDaylightTimeSet>true</DisableAutoDaylightTimeSet>
                <EnableStartMenu>true</EnableStartMenu>
                <OEMName>MATRIX</OEMName>
                <RegisteredOwner>Angel&apos;s Photography</RegisteredOwner>
                <RegisteredOrganization>Shutter CLick</RegisteredOrganization>
                <TimeZone>India Standard Time</TimeZone>
                <ShowPowerButtonOnStartScreen>true</ShowPowerButtonOnStartScreen>
                <DesktopOptimization>
                    <ShowWindowsStoreAppsOnTaskbar>false</ShowWindowsStoreAppsOnTaskbar>
                </DesktopOptimization>
                <WindowsFeatures>
                    <ShowInternetExplorer>false</ShowInternetExplorer>
                    <ShowMediaCenter>false</ShowMediaCenter>
                    <ShowWindowsMediaPlayer>false</ShowWindowsMediaPlayer>
                </WindowsFeatures>
            </component>
            <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">
                <RunSynchronous>
                    <RunSynchronousCommand wcm:action="add">
                        <Order>1</Order>
                        <Path>net user administrator /active:yes</Path>
                    </RunSynchronousCommand>
                </RunSynchronous>
            </component>
            <component name="Microsoft-Windows-Security-SPP-UX" processorArchitecture="wow64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <SkipAutoActivation>true</SkipAutoActivation>
            </component>
            <component name="Microsoft-Windows-SQMApi" processorArchitecture="wow64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <CEIPEnabled>0</CEIPEnabled>
            </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">
                <AutoLogon>
    				<Password>
                        <Value></Value>
                        <PlainText>true</PlainText>
                    </Password>
                    <Username>Administrator</Username>
                    <Enabled>true</Enabled>
                </AutoLogon>
                <UserAccounts>
                    <LocalAccounts>
                        <LocalAccount wcm:action="add">
                            <Description>Local Administrator</Description>
                            <DisplayName>Administrator</DisplayName>
                            <Name>Administrator</Name>
                            <Group>Administrators</Group>
                        </LocalAccount>
                    </LocalAccounts>
                </UserAccounts>
                <OOBE>
                    <HideEULAPage>true</HideEULAPage>
                    <HideOEMRegistrationScreen>true</HideOEMRegistrationScreen>
                    <HideOnlineAccountScreens>true</HideOnlineAccountScreens>
                    <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
                    <ProtectYourPC>3</ProtectYourPC>
                </OOBE>
                <DisableAutoDaylightTimeSet>true</DisableAutoDaylightTimeSet>
                <EnableStartMenu>true</EnableStartMenu>
                <RegisteredOrganization>Shutter Click</RegisteredOrganization>
                <RegisteredOwner>Angel&apos;s Phoography</RegisteredOwner>
                <ShowPowerButtonOnStartScreen>true</ShowPowerButtonOnStartScreen>
                <TimeZone>India Standard Time</TimeZone>
                <FirstLogonCommands>
                    <SynchronousCommand wcm:action="add">
                        <Description>Control Panel View</Description>
                        <Order>1</Order>
                        <RequiresUserInput>true</RequiresUserInput>
                        <CommandLine>reg add &quot;HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel&quot; /v StartupPage /t REG_DWORD /d 1 /f</CommandLine>
                    </SynchronousCommand>
                    <SynchronousCommand wcm:action="add">
                        <Description>Control Panel Icon Size</Description>
                        <Order>2</Order>
                        <RequiresUserInput>true</RequiresUserInput>
                        <CommandLine>reg add &quot;HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel&quot; /v AllItemsIconView /t REG_DWORD /d 0 /f</CommandLine>
                    </SynchronousCommand>
                    <SynchronousCommand wcm:action="add">
                        <Order>3</Order>
                        <RequiresUserInput>true</RequiresUserInput>
                        <CommandLine>reg import %SystemDrive%\Softwares\00_Full_Settings.reg</CommandLine>
                    </SynchronousCommand>
                    <SynchronousCommand wcm:action="add">
                        <CommandLine>reg import %SystemDrive%\Softwares\01_Long_Full_Settings.reg</CommandLine>
                        <Order>4</Order>
                        <RequiresUserInput>true</RequiresUserInput>
                    </SynchronousCommand>
                </FirstLogonCommands>
            </component>
        </settings>
        <cpi:offlineImage cpi:source="wim:d:/windows%20setup/install.wim#Windows 10 Pro" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
    </unattend>
      My Computer


  2. Posts : 4,187
    Windows 11 Pro, 22H2
       #821

    I have several comments regarding this:

    1) You never even provide the error that you are receiving.
    2) There are no language settings in this answer file.
    3) There is no Disk Configuration section in this answer file.
    4) There are several settings not referenced in the tutorial at all.

    I'm sure that I could have found more if I had continued to look, but that was enough for me.

    First, it would have been nice if you had noted first that the answer file you have created in no way resembles an answer file that would be created if the tutorial had been followed and that your answer file was clearly created using some other procedure.

    Second, I'm sure that you are already aware that due to the missing sections, using this answer file will not result in a fully unattended installation because the user will be prompted to supply the missing information such as where to install Windows.

    NOTE: After I wrote the above, I did some testing as described below and I think that I know exactly what you are encountering....

    I took your answer file and tried to install Windows using that answer file. As expected, I need to manually respond in several places during setup because you are missing certain settings as I noted above. However, I then encountered the error that I think you are probably seeing. The error is:

    Windows could not apply unattend settings during pass [offlineServicing].

    Looking closer, I see that you have only one setting in the offlineServicing section, and that is the setting to disable LUA.

    I took an answer file that is a known good, working answer file, and I added in just that one setting. I now get the same error that I noted above.

    Doing some research, I see that Microsoft describes the OfflingServicing section like this:

    "The offlineServicing configuration pass is used to install packages, drivers, and other updates to an offline Windows image."

    So, I don't think that putting this setting in an answer file used during installation is appropriate, although I'll admit that I have never used that OfflineServicing section myself.

    May I suggest using an alternative?

    Start by taking a look at option #2 in this tutorial:

    Enable or Disable User Account Control (UAC) in Windows

    That describes how to disable UAC using the registry. Since I see that your answer file is already making several regisy changes, hopefully it should be easy for you to add this setting as well.

    So, to summarize: You might try removing that OfflineServicing section that you added, then implement the registry change that should accomplish the same thing.

    Please do let me know if that woks!
      My Computers


  3. Posts : 4,187
    Windows 11 Pro, 22H2
       #822

    After some additional research, I stand corrected as to the use of the OfflineServing pass. From Microsoft:

    +++++++++++++++++++

    offlineServicing

    Use the offlineServicing configuration pass to apply unattended Setup settings to an offline Microsoft Windows image. During this configuration pass, you can add language packs, update package, device drivers, or other packages to the offline image.

    The offlineServicing configuration pass runs during Windows Setup. Setup extracts and installs the Windows image, and then executes the Deployment Image Servicing and Management (Dism.exe) tool. Packages listed in the <servicing> section and settings in the <offlineServicing> section of the answer file are applied to the offline Windows image.

    Additionally, you can use the Deployment Image Servicing and Management tool with an answer file to apply settings in the offlineServicing pass. For more information, see Service a Windows Image Using DISM.

    +++++++++++++++++++

    So, while I still am not certain why this was failing, maybe my idea of using the registry setting still might help?
      My Computers


  4. Posts : 5
    WIN 10 PRO
       #823

    finally solved the issue.

    the issue was due to this line,
    <selection name="NetFx3" state="true" />

    removed the line and the answer file works perfectly as intended.

    thanx all.
    @hsehestedt
    sorry for not able to provide the exact error during posting.

    and for the language and disk config, i like to do it manually
    i need disk config in my hands as i install on many different systems with diff config.
    thou ill also integrate the language part in it.
    have to search for English (INDIA) setting.

    the "offlineServicing" part works perfectly as needed, as i want to disable LUA during install, and this answer file does it well.
    using this answer file, i dont have to follow
    part six and part seven for your guide.
    instead i use the old $OEM$, $$ and $1 folder method which works perfectly since windows 7 and is very easy..

    but your guide is very good and informative and helps a lot.

    thanx 4 helping.
      My Computer


  5. Posts : 4,187
    Windows 11 Pro, 22H2
       #824

    @angelTDW,

    Thanks for the update. I've learned some new things from your post as well. I had never used the offline servicing but now I'm actually a little bit intrigued by this.

    I have a suspicion that I may have some idea why the NetFX3 entry may be causing issues. You see, I typically inject Windows updates into Windows ISO images prior to using those images with an unattended installation. I've long known that installing NetFX3 can cause issues when servicing an offline image because it has to be applied AFTER an image cleanup operation is performed due to problems with pending operations that NetFX3 creates. So I wonder if this is related to that issue.

    If you are curious, this is discussed here (scroll down to the NetFX3 heading):

    Offline Servicing - OSBuilder

    One small correction: You have stated "part six and part seven for your guide"...

    I wish that I could take credit for that guide, but I can't. That guide was written by @Kari who has a wealth of fantastic tutorials and information in this forum. This very guide was my introduction to the world of unattended setup.

    In any case, you now have me very curious about the whole offline servicing aspect of unattended setup. I have a very strong feeling that I'll have to start experimenting pretty heavily with that soon.

    Thanks!
      My Computers


  6. Posts : 5
    WIN 10 PRO
       #825

    oh, sorry for that part, after posting i read that it wasn't written by you. but this was the 1st post that led me to unattended windows setup. i always refer to this as a gold line method. after referring to this, i searched the internet and finally with some old techniques and new I create my own unattended setup, simple yet easy, ready to deploy on any PC without hassle.
    i hate UAC or windows defender, so i just disable them during installation, so no issues after.

    i have been using offlineservicing since 2019 or so to disable LUA

    found it out on some forum, dont remember.

    my final autounattended.xml file
    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <unattend xmlns="urn:schemas-microsoft-com:unattend">
        <servicing>
            <package action="configure">
                <assemblyIdentity name="Microsoft-Windows-Foundation-Package" version="10.0.19041.1" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="" />
                <selection name="TIFFIFilter" state="true" />
                <selection name="TelnetClient" state="true" />
                <selection name="SimpleTCP" state="true" />
                <selection name="Printing-XPSServices-Features" state="false" />
                <selection name="LegacyComponents" state="true" />
                <selection name="DirectPlay" state="true" />
            </package>
        </servicing>
        <settings pass="windowsPE">
            <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>
                    <ProductKey>
                        <Key>VK7JG-NPHTM-C97JM-9MPGT-3V66T</Key>
                        <WillShowUI>OnError</WillShowUI>
                    </ProductKey>
                    <AcceptEula>true</AcceptEula>
                    <FullName>Angel&apos;s Photography</FullName>
                    <Organization>Shuter Click</Organization>
                </UserData>
                <ImageInstall>
                    <OSImage>
                        <InstallFrom>
                            <MetaData wcm:action="add">
                                <Key>/IMAGE/NAME</Key>
                                <Value>Windows 10 Pro</Value>
                            </MetaData>
                        </InstallFrom>
                        <InstallToAvailablePartition>false</InstallToAvailablePartition>
                        <WillShowUI>OnError</WillShowUI>
                    </OSImage>
                </ImageInstall>
                <EnableFirewall>false</EnableFirewall>
                <UseConfigurationSet>true</UseConfigurationSet>
            </component>
        </settings>
        <settings pass="offlineServicing">
            <component name="Microsoft-Windows-LUA-Settings" 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">
                <EnableLUA>false</EnableLUA>
            </component>
        </settings>
        <settings pass="generalize">
            <component name="Microsoft-Windows-Security-SPP" 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">
                <SkipRearm>1</SkipRearm>
            </component>
        </settings>
        <settings pass="specialize">
            <component name="Microsoft-Windows-SystemRestore-Main" 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">
                <DisableSR>1</DisableSR>
            </component>
            <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">
                <OEMInformation>
                    <Logo>\windows\system32\oobe\info\nvidia_badge.bmp</Logo>
                    <Manufacturer>NVIDIA</Manufacturer>
                    <Model>The Mean Machine!</Model>
                </OEMInformation>
                <ComputerName>MATRIX</ComputerName>
                <CopyProfile>true</CopyProfile>
                <DisableAutoDaylightTimeSet>true</DisableAutoDaylightTimeSet>
                <EnableStartMenu>true</EnableStartMenu>
                <OEMName>MATRIX</OEMName>
                <RegisteredOwner>Angel&apos;s Photography</RegisteredOwner>
                <RegisteredOrganization>Shutter CLick</RegisteredOrganization>
                <TimeZone>India Standard Time</TimeZone>
                <ShowPowerButtonOnStartScreen>true</ShowPowerButtonOnStartScreen>
                <DesktopOptimization>
                    <ShowWindowsStoreAppsOnTaskbar>false</ShowWindowsStoreAppsOnTaskbar>
                </DesktopOptimization>
                <WindowsFeatures>
                    <ShowInternetExplorer>false</ShowInternetExplorer>
                    <ShowMediaCenter>false</ShowMediaCenter>
                    <ShowWindowsMediaPlayer>false</ShowWindowsMediaPlayer>
                </WindowsFeatures>
            </component>
            <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">
                <RunSynchronous>
                    <RunSynchronousCommand wcm:action="add">
                        <Order>1</Order>
                        <Path>net user administrator /active:yes</Path>
                    </RunSynchronousCommand>
                </RunSynchronous>
            </component>
            <component name="Microsoft-Windows-Security-SPP-UX" processorArchitecture="wow64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <SkipAutoActivation>true</SkipAutoActivation>
            </component>
            <component name="Microsoft-Windows-SQMApi" processorArchitecture="wow64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <CEIPEnabled>0</CEIPEnabled>
            </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">
                <AutoLogon>
    				<Password>
                        <Value></Value>
                        <PlainText>true</PlainText>
                    </Password>
                    <Username>Administrator</Username>
                    <Enabled>true</Enabled>
                </AutoLogon>
                <UserAccounts>
                    <LocalAccounts>
                        <LocalAccount wcm:action="add">
                            <Description>Local Administrator</Description>
                            <DisplayName>Administrator</DisplayName>
                            <Name>Administrator</Name>
                            <Group>Administrators</Group>
                        </LocalAccount>
                    </LocalAccounts>
                </UserAccounts>
                <OOBE>
                    <HideEULAPage>true</HideEULAPage>
                    <HideOEMRegistrationScreen>true</HideOEMRegistrationScreen>
                    <HideOnlineAccountScreens>true</HideOnlineAccountScreens>
                    <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
                    <ProtectYourPC>3</ProtectYourPC>
                </OOBE>
                <DisableAutoDaylightTimeSet>true</DisableAutoDaylightTimeSet>
                <EnableStartMenu>true</EnableStartMenu>
                <RegisteredOrganization>Shutter Click</RegisteredOrganization>
                <RegisteredOwner>Angel&apos;s Phoography</RegisteredOwner>
                <ShowPowerButtonOnStartScreen>true</ShowPowerButtonOnStartScreen>
                <TimeZone>India Standard Time</TimeZone>
                <FirstLogonCommands>
                    <SynchronousCommand wcm:action="add">
                        <Description>Control Panel View</Description>
                        <Order>1</Order>
                        <RequiresUserInput>true</RequiresUserInput>
                        <CommandLine>reg add &quot;HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel&quot; /v StartupPage /t REG_DWORD /d 1 /f</CommandLine>
                    </SynchronousCommand>
                    <SynchronousCommand wcm:action="add">
                        <Description>Control Panel Icon Size</Description>
                        <Order>2</Order>
                        <RequiresUserInput>true</RequiresUserInput>
                        <CommandLine>reg add &quot;HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel&quot; /v AllItemsIconView /t REG_DWORD /d 0 /f</CommandLine>
                    </SynchronousCommand>
                    <SynchronousCommand wcm:action="add">
                        <Order>3</Order>
                        <RequiresUserInput>true</RequiresUserInput>
                        <CommandLine>reg import %SystemDrive%\Softwares\00_Full_Settings.reg</CommandLine>
                    </SynchronousCommand>
                    <SynchronousCommand wcm:action="add">
                        <CommandLine>reg import %SystemDrive%\Softwares\01_Long_Full_Settings.reg</CommandLine>
                        <Order>4</Order>
                        <RequiresUserInput>true</RequiresUserInput>
                    </SynchronousCommand>
                </FirstLogonCommands>
            </component>
        </settings>
        <cpi:offlineImage cpi:source="wim:d:/windows%20setup/install.wim#Windows 10 Pro" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
    </unattend>
    FOlder lising .....
    Code:
    $OEM$
    $$
    $1
    $$ hosts some utilities,
    CPUZx64
    HUMonitorx64
    and OOBE folder

    $1 hosts apps and 1st Run.bat

    1st run.bat

    Code:
    @echo off
    echo Initializing...
    move /Y "%SystemDrive%\Softwares\Control Panel.lnk" "%SystemDrive%\Users\Administrator\AppData\Local\Microsoft\Windows\WinX\Group1\Control Panel.lnk"
    move /Y "%SystemDrive%\Softwares\Packages Remove.txt" "%SystemDrive%\Users\Administrator\Desktop"
    pause
    cls
    echo Now Configuring Services.
    echo ------------------------------
    sc config AJRouter start= disabled
    sc config ALG start= disabled
    sc config PeerDistSvc start= disabled
    sc config CertPropSvc start= disabled
    sc config MapsBroker start= disabled
    sc config Fax start= disabled
    sc config lfsvc start= disabled
    sc config HvHost start= disabled
    sc config irmon start= disabled
    sc config SharedAccess start= disabled
    sc config MSiSCSI start= disabled
    sc config SmsRouter start= disabled
    sc config NetTcpPortSharing start= disabled
    sc config CscService start= disabled
    sc config SEMgrSvc start= disabled
    sc config PhoneSvc start= disabled
    sc config SessionEnv start= disabled
    sc config TermService start= disabled
    sc config UmRdpService start= disabled
    sc config RpcLocator start= disabled
    sc config RetailDemo start= disabled
    sc config ScDeviceEnum start= disabled
    sc config SCPolicySvc start= disabled
    sc config SNMPTRAP start= disabled
    sc config FrameServer start= disabled
    sc config wisvc start= disabled
    sc config WMPNetworkSvc start= disabled
    sc config icssvc start= disabled
    sc config WinRM start= disabled
    sc config WwanSvc start= disabled
    sc config XblAuthManager start= disabled
    sc config XblGameSave start= disabled
    sc config XboxNetApiSvc start= disabled
    sc config RemoteRegistry start= disabled
    sc config dmwappushservice start= disabled
    sc config RemoteAccess start= disabled
    sc config SCardSvr start= disabled
    sc config Wuauserv start= disabled
    echo All Services Configured.
    pause
    cls
    echo Removing OneDrive.
    taskkill /f /im OneDrive.exe
    pause
    %SystemRoot%\SysWOW64\OneDriveSetup.exe /uninstall
    echo Uninstalling OneDrive Successful!
    pause
    takeown /f %SystemRoot%\SysWOW64\OneDriveSetup.exe && icacls %SystemRoot%\SysWOW64\OneDriveSetup.exe /grant *S-1-3-4:F /c /l
    ren %SystemRoot%\SysWOW64\OneDriveSetup.exe 1OneDriveSetup.exe
    pause
    cls
    echo Final Cleaning Up System.
    del "%systemdrive%\Users\Administrator\AppData\Roaming\Microsoft\Windows\SendTo\Compressed (zipped) Folder.ZFSendToTarget"
    del "%systemdrive%\Users\Administrator\AppData\Roaming\Microsoft\Windows\SendTo\Fax Recipient.lnk"
    del "%systemdrive%\Users\Administrator\AppData\Roaming\Microsoft\Windows\SendTo\Mail Recipient.MAPIMail"
    del "%systemdrive%\Users\Administrator\AppData\Roaming\Microsoft\Windows\SendTo\Documents.mydocs"
    del "%systemdrive%\Users\Administrator\Desktop\Microsoft Edge.lnk"
    del "%systemdrive%\Users\Administrator\Links\Downloads.lnk"
    del "%systemdrive%\Users\Administrator\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\OneDrive.lnk"
    
    RD /s /q "%systemdrive%\Users\Administrator\Appdata\local\temp"
    pause
    cls
    echo Setting Things Up.
    reg import %SystemDrive%\Softwares\00_Full_Settings.reg
    reg import %SystemDrive%\Softwares\01_Long_Full_Settings.reg
    
    move /Y "%SystemDrive%\Softwares" "%SystemDrive%\Users\Administrator\Desktop"
    pause
    shutdown /g /t 10 /f
    
    attrib -r 1stRun.cmd
    del 1stRun.cmd >nul
    to insall .net 3.5 right now, i use,
    .NET-3.5-Offline-Installer-v2.3.exe

    and use free,
    windows firewall control 6.8.1.0.exe

    rest many small tools for basic tweaks

    finally system runs smooth and perfect.
      My Computer


  7. Posts : 4,187
    Windows 11 Pro, 22H2
       #826

    Thanks so much for the update and for sharing your code. I'll take a closer look at this when I have a chance to so. There simply are not enough hours in a day .

    I looks like I'll be able to learn a few new tricks from this.
      My Computers


  8. Posts : 5
    WIN 10 PRO
       #827

    welcome. @hsehestedt

    and the registry setting files specified in 1st run, are all aggregated from tenforums and some others to suit a standard need.
    if you need them then do let me know, and ill upload them 2.
      My Computer


  9. Posts : 1
    W10 Pro 64Bit
       #828

    Hi Kari,
    I just created this account because I wanted to say thank you for this awesome post and ask if it's okay to reference this post on my private github-account on my public repo?

    I'm currently working on an autounattended install (which already works great for W11 Enterprise btw!) and wanted to list this post as a resource, so others can get a better understanding of the process of creating these files.

    To reiterate on my repo:
    Im using an answer file to setup Windows 10 Home completely, but am only using an autounattend.xml.
    This autounattend.xml is executing some synchronous commands in order to do some things like setting a wallpaper and running some scripts, which install software like drivers and other stuff via chocolatey. (discord, obs, chrome, teamviewer, steam, etc.)
    The repo is also created in a way, so that other can do it by themselves as well.

    (I'm doing this so that I don't have to reinstall my friends pc's all the time by hand lol)

    The scripts haven't been testet yet, but I'll link my repo once it's finished. (probably later today or tomorrow)

    Thanks for this awesome post Kari!

    Best Regards
    Raphael
      My Computer


  10. Posts : 1
    Windows 10
       #829

    angelTDW said:
    welcome. @hsehestedt

    and the registry setting files specified in 1st run, are all aggregated from tenforums and some others to suit a standard need.
    if you need them then do let me know, and ill upload them 2.
    Could you share what settings you use on the system. If you can share this pack I would be grateful. Thanks.

    01_Long_Full_Settings.reg e 00_Full_Settings.reg ??
    Last edited by RafhaCorreia; 07 May 2022 at 10:39.
      My Computer


 

Tutorial Categories

Create media for automated unattended install of Windows 10 Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Mixed Reality Phone


  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 01:28.
Find Us




Windows 10 Forums