• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

Assistance with unattend script

Scheduled Pinned Locked Moved Solved
Windows Problems
2
9
718
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J
    jemerson93
    last edited by jemerson93 May 28, 2019, 4:53 PM May 28, 2019, 10:52 PM

    Hey all,

    I’m having various issues after sysprep with Windows booting. I’m starting to think something has changed in 1903 that is affecting my unattend.xml file. Can anyone give this a look over and let me know what can be removed? More specifically, I think it is the partitioning that is giving issues.

    <?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="x86" 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>
    <InputLocale>0409:00000409</InputLocale>
    <SystemLocale>en-US</SystemLocale>
    <UILanguage>en-US</UILanguage>
    <UILanguageFallback>en-US</UILanguageFallback>
    <UserLocale>en-US</UserLocale>
    </component>
    <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>
    <InputLocale>0409:00000409</InputLocale>
    <SystemLocale>en-US</SystemLocale>
    <UILanguage>en-US</UILanguage>
    <UILanguageFallback>en-US</UILanguageFallback>
    <UserLocale>en-US</UserLocale>
    </component>
    <component name="Microsoft-Windows-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <DiskConfiguration>
    <Disk wcm:action="add">
    <CreatePartitions>
    <CreatePartition wcm:action="add">
    <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>
    <Label>System Reserved</Label>
    <Order>1</Order>
    <PartitionID>1</PartitionID>
    <TypeID>0x27</TypeID>
    </ModifyPartition>
    <ModifyPartition wcm:action="add">
    <Active>true</Active>
    <Format>NTFS</Format>
    <Label>Local Disk</Label>
    <Letter>C</Letter>
    <Order>2</Order>
    <PartitionID>2</PartitionID>
    </ModifyPartition>
    </ModifyPartitions>
    <DiskID>0</DiskID>
    <WillWipeDisk>true</WillWipeDisk>
    </Disk>
    </DiskConfiguration>
    <ImageInstall>
    <OSImage>
    <InstallTo>
    <DiskID>0</DiskID>
    <PartitionID>2</PartitionID>
    </InstallTo>
    <InstallToAvailablePartition>false</InstallToAvailablePartition>
    </OSImage>
    </ImageInstall>
    <UserData>
    <AcceptEula>true</AcceptEula>
    <FullName>redacted</FullName>
    <Organization></Organization>
    <ProductKey>
    <Key>redacted</Key>
    </ProductKey>
    </UserData>
    </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">
    <DiskConfiguration>
    <Disk wcm:action="add">
    <CreatePartitions>
    <CreatePartition wcm:action="add">
    <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>
    <Label>System Reserved</Label>
    <Order>1</Order>
    <PartitionID>1</PartitionID>
    <TypeID>0x27</TypeID>
    </ModifyPartition>
    <ModifyPartition wcm:action="add">
    <Active>true</Active>
    <Format>NTFS</Format>
    <Label>Local Disk</Label>
    <Letter>C</Letter>
    <Order>2</Order>
    <PartitionID>2</PartitionID>
    </ModifyPartition>
    </ModifyPartitions>
    <DiskID>0</DiskID>
    <WillWipeDisk>true</WillWipeDisk>
    </Disk>
    </DiskConfiguration>
    <ImageInstall>
    <OSImage>
    <InstallTo>
    <DiskID>0</DiskID>
    <PartitionID>2</PartitionID>
    </InstallTo>
    <InstallToAvailablePartition>false</InstallToAvailablePartition>
    </OSImage>
    </ImageInstall>
    <UserData>
    <AcceptEula>true</AcceptEula>
    <FullName>tnp</FullName>
    <Organization></Organization>
    <ProductKey>
    <Key>redacted</Key>
    </ProductKey>
    </UserData>
    </component>
    </settings>
    <settings pass="offlineServicing">
    <component name="Microsoft-Windows-LUA-Settings" processorArchitecture="x86" 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="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="x86" 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="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-International-Core" processorArchitecture="x86" 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>0409:00000409</InputLocale>
    <SystemLocale>en-US</SystemLocale>
    <UILanguage>en-US</UILanguage>
    <UILanguageFallback>en-US</UILanguageFallback>
    <UserLocale>en-US</UserLocale>
    </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>0409:00000409</InputLocale>
    <SystemLocale>en-US</SystemLocale>
    <UILanguage>en-US</UILanguage>
    <UILanguageFallback>en-US</UILanguageFallback>
    <UserLocale>en-US</UserLocale>
    </component>
    <component name="Microsoft-Windows-Security-SPP-UX" processorArchitecture="x86" 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-Security-SPP-UX" 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">
    <SkipAutoActivation>true</SkipAutoActivation>
    </component>
    <component name="Microsoft-Windows-SQMApi" processorArchitecture="x86" 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>
    <component name="Microsoft-Windows-SQMApi" 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">
    <CEIPEnabled>0</CEIPEnabled>
    </component>
    <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <ComputerName>-PC</ComputerName>
    <ProductKey>redacted</ProductKey>
    </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">
    <ComputerName>-PC</ComputerName>
    <ProductKey>redacted</ProductKey>
    </component>
    </settings>
    <settings pass="oobeSystem">
    <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" 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>redacted</Value>
    <PlainText>true</PlainText>
    </Password>
    <Enabled>false</Enabled>
    <Username>redacted</Username>
    </AutoLogon>
    <OOBE>
    <HideEULAPage>true</HideEULAPage>
    <HideOEMRegistrationScreen>true</HideOEMRegistrationScreen>
    <HideOnlineAccountScreens>true</HideOnlineAccountScreens>
    <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
    <NetworkLocation>Work</NetworkLocation>
    <SkipUserOOBE>true</SkipUserOOBE>
    <SkipMachineOOBE>true</SkipMachineOOBE>
    <ProtectYourPC>1</ProtectYourPC>
    </OOBE>
    <UserAccounts>
    <LocalAccounts>
    <LocalAccount wcm:action="add">
    <Password>
    <Value>redacted</Value>
    <PlainText>true</PlainText>
    </Password>
    <Description></Description>
    <DisplayName>redacted</DisplayName>
    <Group>Administrators</Group>
    <Name>redacted</Name>
    </LocalAccount>
    </LocalAccounts>
    </UserAccounts>
    <RegisteredOrganization></RegisteredOrganization>
    <RegisteredOwner>redacted</RegisteredOwner>
    <DisableAutoDaylightTimeSet>false</DisableAutoDaylightTimeSet>
    <FirstLogonCommands>
    <SynchronousCommand wcm:action="add">
    <Description>Control Panel View</Description>
    <Order>1</Order>
    <CommandLine>reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel" /v StartupPage /t REG_DWORD /d 1 /f</CommandLine>
    <RequiresUserInput>true</RequiresUserInput>
    </SynchronousCommand>
    <SynchronousCommand wcm:action="add">
    <Order>2</Order>
    <Description>Control Panel Icon Size</Description>
    <RequiresUserInput>false</RequiresUserInput>
    <CommandLine>reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel" /v AllItemsIconView /t REG_DWORD /d 1 /f</CommandLine>
    </SynchronousCommand>
    <SynchronousCommand wcm:action="add">
    <Order>3</Order>
    <RequiresUserInput>false</RequiresUserInput>
    <CommandLine>cmd /C wmic useraccount where name="tnp" set PasswordExpires=false</CommandLine>
    <Description>Password Never Expires</Description>
    </SynchronousCommand>
    </FirstLogonCommands>
    <TimeZone>Pacific Standard Time</TimeZone>
    </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">
    <AutoLogon>
    <Password>
    <Value>redacted</Value>
    <PlainText>true</PlainText>
    </Password>
    <Enabled>false</Enabled>
    <Username>redacted</Username>
    </AutoLogon>
    <OOBE>
    <HideEULAPage>true</HideEULAPage>
    <HideOEMRegistrationScreen>true</HideOEMRegistrationScreen>
    <HideOnlineAccountScreens>true</HideOnlineAccountScreens>
    <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
    <NetworkLocation>Work</NetworkLocation>
    <SkipUserOOBE>true</SkipUserOOBE>
    <SkipMachineOOBE>true</SkipMachineOOBE>
    <ProtectYourPC>1</ProtectYourPC>
    </OOBE>
    <UserAccounts>
    <LocalAccounts>
    <LocalAccount wcm:action="add">
    <Password>
    <Value>redacted</Value>
    <PlainText>true</PlainText>
    </Password>
    <Description></Description>
    <DisplayName>redacted</DisplayName>
    <Group>Administrators</Group>
    <Name>tnp</Name>
    </LocalAccount>
    </LocalAccounts>
    </UserAccounts>
    <RegisteredOrganization></RegisteredOrganization>
    <RegisteredOwner>redacted</RegisteredOwner>
    <DisableAutoDaylightTimeSet>false</DisableAutoDaylightTimeSet>
    <FirstLogonCommands>
    <SynchronousCommand wcm:action="add">
    <Description>SetupComplete</Description>
    <Order>1</Order>
    <CommandLine>C:\PowershellPolicy.cmd</CommandLine>
    <RequiresUserInput>false</RequiresUserInput>
    </SynchronousCommand>
    <SynchronousCommand wcm:action="add">
    <Description>Control Panel View</Description>
    <Order>2</Order>
    <CommandLine>reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel" /v StartupPage /t REG_DWORD /d 0 /f</CommandLine>
    <RequiresUserInput>true</RequiresUserInput>
    </SynchronousCommand>
    <SynchronousCommand wcm:action="add">
    <Order>3</Order>
    <Description>Control Panel Icon Size</Description>
    <RequiresUserInput>false</RequiresUserInput>
    <CommandLine>reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel" /v AllItemsIconView /t REG_DWORD /d 1 /f</CommandLine>
    </SynchronousCommand>
    <SynchronousCommand wcm:action="add">
    <Order>4</Order>
    <RequiresUserInput>false</RequiresUserInput>
    <CommandLine>cmd /C wmic useraccount where name="tnp" set PasswordExpires=false</CommandLine>
    <Description>Password Never Expires</Description>
    </SynchronousCommand>
    </FirstLogonCommands>
    <TimeZone>Pacific Standard Time</TimeZone>
    </component>
    </settings>
    </unattend>```
    1 Reply Last reply Reply Quote 0
    • G
      george1421 Moderator
      last edited by george1421 May 28, 2019, 5:12 PM May 28, 2019, 11:09 PM

      Yes, I would first get rid of the partitioning settings. They are not needed/wanted if you are using FOG to push out the image. If you were building from bare metal then yes you would need them.

      Here is an example unattend.xml, it maybe from Win7, but we are using the same unattend.xml file today with Win10 1809 with very few changes: https://forums.fogproject.org/topic/11920/windows-10-1803-sysprep-problem/7 I have no clue with 1903 since getting 1809 to work was enough pain for us for another 6 months (not related to FOG).

      Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

      J 2 Replies Last reply May 28, 2019, 11:37 PM Reply Quote 0
      • J
        jemerson93 @george1421
        last edited by May 28, 2019, 11:37 PM

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • J
          jemerson93 @george1421
          last edited by May 28, 2019, 11:38 PM

          @george1421 said in Assistance with unattend script:

          Yes, I would first get rid of the partitioning settings. They are not needed/wanted if you are using FOG to push out the image. If you were building from bare metal then yes you would need them.

          Here is an example unattend.xml, it maybe from Win7, but we are using the same unattend.xml file today with Win10 1809 with very few changes: https://forums.fogproject.org/topic/11920/windows-10-1803-sysprep-problem/7 I have no clue with 1903 since getting 1809 to work was enough pain for us for another 6 months (not related to FOG).

          Would I be able to just remove the entire component and down for both partitioning parts? Do I need to add anything to expand?

          I’m looking at this now…

          <?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="x86" 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>
          <InputLocale>0409:00000409</InputLocale>
          <SystemLocale>en-US</SystemLocale>
          <UILanguage>en-US</UILanguage>
          <UILanguageFallback>en-US</UILanguageFallback>
          <UserLocale>en-US</UserLocale>
          </component>
          <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>
          <InputLocale>0409:00000409</InputLocale>
          <SystemLocale>en-US</SystemLocale>
          <UILanguage>en-US</UILanguage>
          <UILanguageFallback>en-US</UILanguageFallback>
          <UserLocale>en-US</UserLocale>
          </component>
          </settings>
          <settings pass="offlineServicing">
          <component name="Microsoft-Windows-LUA-Settings" processorArchitecture="x86" 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="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="x86" 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="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-International-Core" processorArchitecture="x86" 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>0409:00000409</InputLocale>
          <SystemLocale>en-US</SystemLocale>
          <UILanguage>en-US</UILanguage>
          <UILanguageFallback>en-US</UILanguageFallback>
          <UserLocale>en-US</UserLocale>
          </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>0409:00000409</InputLocale>
          <SystemLocale>en-US</SystemLocale>
          <UILanguage>en-US</UILanguage>
          <UILanguageFallback>en-US</UILanguageFallback>
          <UserLocale>en-US</UserLocale>
          </component>
          <component name="Microsoft-Windows-Security-SPP-UX" processorArchitecture="x86" 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-Security-SPP-UX" 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">
          <SkipAutoActivation>true</SkipAutoActivation>
          </component>
          <component name="Microsoft-Windows-SQMApi" processorArchitecture="x86" 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>
          <component name="Microsoft-Windows-SQMApi" 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">
          <CEIPEnabled>0</CEIPEnabled>
          </component>
          <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
          <ComputerName>-PC</ComputerName>
          <ProductKey>redacted</ProductKey>
          </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">
          <ComputerName>-PC</ComputerName>
          <ProductKey>redacted</ProductKey>
          </component>
          </settings>
          <settings pass="oobeSystem">
          <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" 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>redacted</Value>
          <PlainText>true</PlainText>
          </Password>
          <Enabled>false</Enabled>
          <Username>redacted</Username>
          </AutoLogon>
          <OOBE>
          <HideEULAPage>true</HideEULAPage>
          <HideOEMRegistrationScreen>true</HideOEMRegistrationScreen>
          <HideOnlineAccountScreens>true</HideOnlineAccountScreens>
          <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
          <NetworkLocation>Work</NetworkLocation>
          <SkipUserOOBE>true</SkipUserOOBE>
          <SkipMachineOOBE>true</SkipMachineOOBE>
          <ProtectYourPC>1</ProtectYourPC>
          </OOBE>
          <UserAccounts>
          <LocalAccounts>
          <LocalAccount wcm:action="add">
          <Password>
          <Value>redacted</Value>
          <PlainText>true</PlainText>
          </Password>
          <Description></Description>
          <DisplayName>redacted</DisplayName>
          <Group>Administrators</Group>
          <Name>redacted</Name>
          </LocalAccount>
          </LocalAccounts>
          </UserAccounts>
          <RegisteredOrganization></RegisteredOrganization>
          <RegisteredOwner>redacted</RegisteredOwner>
          <DisableAutoDaylightTimeSet>false</DisableAutoDaylightTimeSet>
          <FirstLogonCommands>
          <SynchronousCommand wcm:action="add">
          <Description>Control Panel View</Description>
          <Order>1</Order>
          <CommandLine>reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel" /v StartupPage /t REG_DWORD /d 1 /f</CommandLine>
          <RequiresUserInput>true</RequiresUserInput>
          </SynchronousCommand>
          <SynchronousCommand wcm:action="add">
          <Order>2</Order>
          <Description>Control Panel Icon Size</Description>
          <RequiresUserInput>false</RequiresUserInput>
          <CommandLine>reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel" /v AllItemsIconView /t REG_DWORD /d 1 /f</CommandLine>
          </SynchronousCommand>
          <SynchronousCommand wcm:action="add">
          <Order>3</Order>
          <RequiresUserInput>false</RequiresUserInput>
          <CommandLine>cmd /C wmic useraccount where name="tnp" set PasswordExpires=false</CommandLine>
          <Description>Password Never Expires</Description>
          </SynchronousCommand>
          </FirstLogonCommands>
          <TimeZone>Pacific Standard Time</TimeZone>
          </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">
          <AutoLogon>
          <Password>
          <Value>redacted</Value>
          <PlainText>true</PlainText>
          </Password>
          <Enabled>false</Enabled>
          <Username>redacted</Username>
          </AutoLogon>
          <OOBE>
          <HideEULAPage>true</HideEULAPage>
          <HideOEMRegistrationScreen>true</HideOEMRegistrationScreen>
          <HideOnlineAccountScreens>true</HideOnlineAccountScreens>
          <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
          <NetworkLocation>Work</NetworkLocation>
          <SkipUserOOBE>true</SkipUserOOBE>
          <SkipMachineOOBE>true</SkipMachineOOBE>
          <ProtectYourPC>1</ProtectYourPC>
          </OOBE>
          <UserAccounts>
          <LocalAccounts>
          <LocalAccount wcm:action="add">
          <Password>
          <Value>redacted</Value>
          <PlainText>true</PlainText>
          </Password>
          <Description></Description>
          <DisplayName>redacted</DisplayName>
          <Group>Administrators</Group>
          <Name>tnp</Name>
          </LocalAccount>
          </LocalAccounts>
          </UserAccounts>
          <RegisteredOrganization></RegisteredOrganization>
          <RegisteredOwner>redacted</RegisteredOwner>
          <DisableAutoDaylightTimeSet>false</DisableAutoDaylightTimeSet>
          <FirstLogonCommands>
          <SynchronousCommand wcm:action="add">
          <Description>SetupComplete</Description>
          <Order>1</Order>
          <CommandLine>C:\PowershellPolicy.cmd</CommandLine>
          <RequiresUserInput>false</RequiresUserInput>
          </SynchronousCommand>
          <SynchronousCommand wcm:action="add">
          <Description>Control Panel View</Description>
          <Order>2</Order>
          <CommandLine>reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel" /v StartupPage /t REG_DWORD /d 0 /f</CommandLine>
          <RequiresUserInput>true</RequiresUserInput>
          </SynchronousCommand>
          <SynchronousCommand wcm:action="add">
          <Order>3</Order>
          <Description>Control Panel Icon Size</Description>
          <RequiresUserInput>false</RequiresUserInput>
          <CommandLine>reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel" /v AllItemsIconView /t REG_DWORD /d 1 /f</CommandLine>
          </SynchronousCommand>
          <SynchronousCommand wcm:action="add">
          <Order>4</Order>
          <RequiresUserInput>false</RequiresUserInput>
          <CommandLine>cmd /C wmic useraccount where name="tnp" set PasswordExpires=false</CommandLine>
          <Description>Password Never Expires</Description>
          </SynchronousCommand>
          </FirstLogonCommands>
          <TimeZone>Pacific Standard Time</TimeZone>
          </component>
          </settings>
          </unattend>
          G 1 Reply Last reply May 29, 2019, 12:15 AM Reply Quote 0
          • G
            george1421 Moderator @jemerson93
            last edited by May 29, 2019, 12:15 AM

            @jemerson93 I’d have to load it into waik to be sure, but everything looks good. I would take a few exceptions.

            1. The auto login, do you need to define a count. Typically you would set it to 1 or more depending on how many time you needed the system to auto login.
            2. Your first run commands update hkcu. Those settings will only change the user that is auto logging on not every user. You will need to account to have something run the first time every user logs in if you don’t have a default profile set (I know win10 doesn’t have such a thing but there are ways to get the same results, google is your friend).
            3. I have seen at the end of the synchronous commands the last steps is a shutdown -r to restart the system. That way the IT tech knows the install is done when its sitting at a login prompt.

            Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

            J 1 Reply Last reply May 29, 2019, 3:54 AM Reply Quote 0
            • J
              jemerson93 @george1421
              last edited by May 29, 2019, 3:54 AM

              @george1421 said in Assistance with unattend script:

              @jemerson93 I’d have to load it into waik to be sure, but everything looks good. I would take a few exceptions.

              1. The auto login, do you need to define a count. Typically you would set it to 1 or more depending on how many time you needed the system to auto login.
              2. Your first run commands update hkcu. Those settings will only change the user that is auto logging on not every user. You will need to account to have something run the first time every user logs in if you don’t have a default profile set (I know win10 doesn’t have such a thing but there are ways to get the same results, google is your friend).
              3. I have seen at the end of the synchronous commands the last steps is a shutdown -r to restart the system. That way the IT tech knows the install is done when its sitting at a login prompt.

              Thanks for the input. I’m going to continue working on this.

              Getting this error, windows could not finish configuring the system. to attempt to resume configuration, restart the computer so I still need to figure out where this is going wrong. Whether it is my unattend script or something more.

              G 1 Reply Last reply May 29, 2019, 11:52 AM Reply Quote 0
              • G
                george1421 Moderator @jemerson93
                last edited by May 29, 2019, 11:52 AM

                @jemerson93 said in Assistance with unattend script:

                windows could not finish configuring the system. to attempt to resume configuration, restart the computer

                Yeah that one is a pain to solve. There are logs in c:\windows\panther that should explain what it is having issues with.

                I can say from past experiences that

                1. Having the wrong product key in the unattend.xml causes problems. I’ve removed that stanza from my unattend.xml and activate windows post setup with a first run command.
                2. Having the unattend.xml in the wrong place or where windows setup can’t find it will cause a problem. ALWAYS, put the unattend.xml file in c:\windows\panther that is the first place that windows setup will look. If you notice in my previous link I also call out the exact location of the unattend.xml file when I run sysprep.
                3. Having 2 unattend.xml files will cause unexplained issues.
                4. Having a bad driver that causes the winsetup to spontaneously reboot causes an issue. I haven’t seen this much of a problem in Win10 over Win7.
                5. Having the fog client enabled when the system is sysprepped will cause a similar issue. The fog client (if used) should be installed in your golden image but configured as a disabled service, then in your setupcomplete.cmd file reenabled and started. This is to prevent the fog client from changing the system name and rebooting before winsetup and oobe have finished. ref: https://wiki.fogproject.org/wiki/index.php/FOG_Client#FOG_Client_with_Sysprep

                Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                J 1 Reply Last reply Jun 2, 2019, 7:48 AM Reply Quote 0
                • J
                  jemerson93 @george1421
                  last edited by Jun 2, 2019, 7:48 AM

                  @george1421 said in Assistance with unattend script:

                  @jemerson93 said in Assistance with unattend script:

                  windows could not finish configuring the system. to attempt to resume configuration, restart the computer

                  Yeah that one is a pain to solve. There are logs in c:\windows\panther that should explain what it is having issues with.

                  I can say from past experiences that

                  1. Having the wrong product key in the unattend.xml causes problems. I’ve removed that stanza from my unattend.xml and activate windows post setup with a first run command.
                  2. Having the unattend.xml in the wrong place or where windows setup can’t find it will cause a problem. ALWAYS, put the unattend.xml file in c:\windows\panther that is the first place that windows setup will look. If you notice in my previous link I also call out the exact location of the unattend.xml file when I run sysprep.
                  3. Having 2 unattend.xml files will cause unexplained issues.
                  4. Having a bad driver that causes the winsetup to spontaneously reboot causes an issue. I haven’t seen this much of a problem in Win10 over Win7.
                  5. Having the fog client enabled when the system is sysprepped will cause a similar issue. The fog client (if used) should be installed in your golden image but configured as a disabled service, then in your setupcomplete.cmd file reenabled and started. This is to prevent the fog client from changing the system name and rebooting before winsetup and oobe have finished. ref: https://wiki.fogproject.org/wiki/index.php/FOG_Client#FOG_Client_with_Sysprep

                  Hi George,

                  I took some time to manually re-create my unattend.xml following your advice above and managed to fix all of the issues. Convientely, I also no longer need to have separate unattend scripts for Windows 7 and Windows 10 MBR and Windows 10 GPT.

                  The new script lacks all of the manual partitioning and only contains the amd64 edits (I didn’t think I needed the x86).

                  After a few days of testing, everything seems to be working perfect!

                  Thank you for the assistance, this is resolved.

                  G 1 Reply Last reply Jun 3, 2019, 12:04 PM Reply Quote 0
                  • G
                    george1421 Moderator @jemerson93
                    last edited by Jun 3, 2019, 12:04 PM

                    @jemerson93 said in Assistance with unattend script:

                    I also no longer need to have separate unattend scripts for Windows 7 and Windows 10 MBR and Windows 10 GPT.

                    Excellent!! There are a few new options in Win10 unattend file but you can bypass them and as you found you can make the unattend file almost universal. That’s one less bit you have to constantly manage.

                    Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                    1 Reply Last reply Reply Quote 0
                    • 1 / 1
                    1 / 1
                    • First post
                      3/9
                      Last post

                    166

                    Online

                    12.0k

                    Users

                    17.3k

                    Topics

                    155.2k

                    Posts
                    Copyright © 2012-2024 FOG Project