none
Reasons for FirstLogonCommands to not execute? RRS feed

  • คำถาม

  • I'm building and deploying a Windows 10 Pro image with WDS & MDT and every tweak and task is pretty much done except for some stuff that needs to be done through FirstLogonCommands. The problem is that my FirstLogonCommand doesn't seem to execute and I can't figure out why.

    - No errors are present in setuperr.log and setupact.log has a mention of executing the FirstLogonCommand:
    2019-07-22 11:08:31, Info [Shell Unattend] LogonCommands: Set command 'C:\windows\setup\scripts\FirstLogon.cmd'
    - Autologin is enabled in Unattend.xml with an Administrator account and the autologin works.
    - The unattended install is done with an Administrator account.
    - My FirstLogonCommands script is copied to C:\Windows\Setup\Scripts\FirstLogon.cmd , so the file is present on the machine that receives the image.
    - If I execute the FirstLogon.cmd command manually on the machine that received the image, it runs without any problems.
    - The image is based on Windows 10 PRO 1803 from VLSC.

    What could be reasons for the FirstLogonCommand not executing?

    Below is a part of my Unattend.xml:
    <settings pass="oobeSystem">
        <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="SECRET" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State">
          <UserAccounts>
            <AdministratorPassword>
              <Value>SECRET</Value>
              <PlainText>true</PlainText>
            </AdministratorPassword>
          </UserAccounts>
          <AutoLogon>
            <Enabled>true</Enabled>
            <Username>administrator</Username>
            <Domain>.</Domain>
            <Password>
              <Value>SECRET</Value>
              <PlainText>true</PlainText>
            </Password>
            <LogonCount>999</LogonCount>
          </AutoLogon>
          <Display>
            <ColorDepth></ColorDepth>
            <HorizontalResolution></HorizontalResolution>
            <RefreshRate></RefreshRate>
            <VerticalResolution></VerticalResolution>
          </Display>
          <FirstLogonCommands>
            <SynchronousCommand wcm:action="add">
              <CommandLine>wscript.exe %SystemDrive%\LTIBootstrap.vbs</CommandLine>
              <Description>Lite Touch new OS</Description>
              <Order>1</Order>
            </SynchronousCommand>
            <SynchronousCommand wcm:action="add">
              <CommandLine>c:\windows\setup\scripts\FirstLogon.cmd</CommandLine>
              <Order>2</Order>
            </SynchronousCommand>
          </FirstLogonCommands>
          <OOBE>
            <HideEULAPage>true</HideEULAPage>
            <NetworkLocation>Work</NetworkLocation>
            <ProtectYourPC>1</ProtectYourPC>
            <HideLocalAccountScreen>true</HideLocalAccountScreen>
            <HideOnlineAccountScreens>true</HideOnlineAccountScreens>
            <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
          </OOBE>
          <RegisteredOrganization>Company</RegisteredOrganization>
          <RegisteredOwner>Company Admin</RegisteredOwner>
          <TimeZone></TimeZone>
        </component>
        <component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="SECRET" 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>
          <UserLocale>en-US</UserLocale>
        </component>
      </settings>

    Thanks in advance






    • แก้ไขโดย zzmm200 22 กรกฎาคม 2562 10:51
    22 กรกฎาคม 2562 10:05

ตอบทั้งหมด