none
Script failed to from network share during unattend install RRS feed

  • Question

  • My script on my network share failed to run during unattend install right before the first login. Scripts and apps is on my network shared E drive. Please check out my SetupComplete.cmd and Apps.bat file below. Can someone take a look at my unattend xml file and suggest me a solution? Attached is my error screenshot during unattend install right before first login. I've also added my SetupComplete.cmd and Apps.bat file. Please let me know what is wrong with it and how can I fix it. Thanks

    <?xml version="1.0" encoding="utf-8"?>
    <unattend xmlns="urn:schemas-microsoft-com:unattend">
       
    <settings pass="specialize">
           
    <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>WIN-8-DEPL</ComputerName>
                <ProductKey>MHF9N-XY6XB-WVXMC-BTDCT-MKKG7</
    ProductKey>
               
    <RegisteredOrganization>Microsoft</RegisteredOrganization>
                <RegisteredOwner>Microsoft</
    RegisteredOwner>
               
    <ShowWindowsLive>false</ShowWindowsLive>
                <TimeZone>eastern standard time</
    TimeZone>
               
    <CopyProfile>true</CopyProfile>
                <BluetoothTaskbarIconEnabled>false</
    BluetoothTaskbarIconEnabled>
           
    </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:no</Path>
                        <Description>Enabling Built in Administrator Account</
    Description>
                       
    <WillReboot>Never</WillReboot>
                    </
    RunSynchronousCommand>
                   
    <RunSynchronousCommand wcm:action="add">
                       
    <Description>DisableNetworkLocationPrompt</Description>
                        <Order>2</
    Order>
                       
    <Path>REG ADD &quot;HKLM\SOFTWARE\Policies\Microsoft\Windows NT\CurrentVersion\NetworkList\Signatures\FirstNetwork&quot; /v Category /t REG_DWORD /d 00000000 /f</Path>
                        <WillReboot>Never</
    WillReboot>
                   
    </RunSynchronousCommand>
                    <RunSynchronousCommand wcm:action="add">
                        <Path>REG ADD HKLM\System\CurrentControlSet\Services\Tcpip6\parameters /
    v DisabledComponents /t REG_DWORD /d 0xFF /f</Path>
                        <Order>3</
    Order>
                       
    <Description>Diasbling IPV6</Description>
                        <WillReboot>Never</
    WillReboot>
                   
    </RunSynchronousCommand>
                    <RunSynchronousCommand wcm:action="add">
                        <Credentials>
                            <Domain>Mikasa.local</
    Domain>
                           
    <Password>Ghtwhts2015</Password>
                            <Username>Administrator</
    Username>
                       
    </Credentials>
                        <Path>\\WDS-DEP-SERV\E\Distribution\Drivers\setup64.exe /
    s /v &quot;/qn REBOOT=ReallySuppress&quot; /l C:\Windows\Temp\vmware_tools_install.log</Path>
                        <Order>4</
    Order>
                       
    <Description>Vmware Tools Installation</Description>
                        <WillReboot>Always</
    WillReboot>
                   
    </RunSynchronousCommand>
                </
    RunSynchronous>
           
    </component>
            <component name="Microsoft-Windows-IE-InternetExplorer" 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">
               
    <DisableAccelerators>true</DisableAccelerators>
                <DisableFirstRunWizard>true</
    DisableFirstRunWizard>
               
    <Home_Page>www.marca.com</Home_Page>
                <BlockPopups>yes</
    BlockPopups>
           
    </component>
            <component name="Microsoft-Windows-TerminalServices-LocalSessionManager" 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">
               
    <fDenyTSConnections>false</fDenyTSConnections>
            </
    component>
           
    <component name="Networking-MPSSVC-Svc" 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">
               
    <FirewallGroups>
                   
    <FirewallGroup wcm:action="add" wcm:keyValue="Remote Desktop">
                       
    <Active>true</Active>
                        <Group>Remote Desktop</
    Group>
                       
    <Profile>all</Profile>
                    </
    FirewallGroup>
               
    </FirewallGroups>
            </
    component>
           
    <component name="Microsoft-Windows-TerminalServices-RDP-WinStationExtensions" 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">
               
    <UserAuthentication>0</UserAuthentication>
                <SecurityLayer>1</
    SecurityLayer>
           
    </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>
       
    </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>RwBoAHQAdwBoAHQAcwAyADAAMQA2AFAAYQBzAHMAdwBvAHIAZAA=</Value>
                       
    <PlainText>false</PlainText>
                    </
    Password>
                   
    <Enabled>true</Enabled>
                    <LogonCount>10</
    LogonCount>
                   
    <Username>DarkKnight</Username>
                    <Domain></
    Domain>
               
    </AutoLogon>
                <OOBE>
                    <HideEULAPage>true</
    HideEULAPage>
                   
    <NetworkLocation>Home</NetworkLocation>
                    <ProtectYourPC>1</
    ProtectYourPC>
                   
    <HideOEMRegistrationScreen>true</HideOEMRegistrationScreen>
                    <HideWirelessSetupInOOBE>false</
    HideWirelessSetupInOOBE>
               
    </OOBE>
                <UserAccounts>
                    <AdministratorPassword>
                        <Value>RwBoAHQAdwBoAHQAcwAyADAAMQA2AEEAZABtAGkAbgBpAHMAdAByAGEAdABvAHIAUABhAHMAcwB3AG8AcgBkAA==</
    Value>
                       
    <PlainText>false</PlainText>
                    </
    AdministratorPassword>
                   
    <LocalAccounts>
                       
    <LocalAccount wcm:action="add">
                           
    <Password>
                               
    <Value>RwBoAHQAdwBoAHQAcwAyADAAMQA2AFAAYQBzAHMAdwBvAHIAZAA=</Value>
                               
    <PlainText>false</PlainText>
                            </
    Password>
                           
    <Description>Admin User Account</Description>
                            <DisplayName>DarkKnight</
    DisplayName>
                           
    <Group>Administrators</Group>
                            <Name>DarkKnight</
    Name>
                       
    </LocalAccount>
                    </
    LocalAccounts>
               
    </UserAccounts>
                <RegisteredOrganization>Mikasa</
    RegisteredOrganization>
               
    <RegisteredOwner>Mikasa</RegisteredOwner>
                <ShowWindowsLive>false</
    ShowWindowsLive>
               
    <TimeZone>eastern standard time</TimeZone>
                <FirstLogonCommands>
                    <SynchronousCommand wcm:action="add">
                        <CommandLine>cmd /
    C start /wait E:\RemoteInstall\Images\Windows8\install\$OEM$\$$\Setup\Scripts\SetupComplete.cmd</CommandLine>
                        <Description>Various Apps Installation</
    Description>
                       
    <Order>1</Order>
                        <RequiresUserInput>false</
    RequiresUserInput>
                   
    </SynchronousCommand>
                </
    FirstLogonCommands>
           
    </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>
               
    <UILanguageFallback></UILanguageFallback>
           
    </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="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>
        <cpi:offlineImage cpi:source="wim:e:/
    windows-os-images/win8.1x86ent-wimfiles/install.wim#Windows 8.1 Enterprise" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
    </unattend>

    SetupComplete.cmd file 
    
    net use z:\\WDS-DEP-SERV\Apps /user:Mikasa.local\Immy Ghtwhts2016
    z:\Apps\Apps.bat
    
    
    
    Apps.bat file
    
    
    msiexec /i z:\Apps\7z920-x64.msi /q INSTALLDIR="%ProgramFiles%\7-Zip"
    z:\Apps\Adobe-Reader.exe /sPB /rs
    z:\Apps\Firefox.exe -ms
    z:\Apps\Java.exe /s
    msiexec /i z:\Apps\Adobe-Flash.msi /qn
    net use /delete z:

    Saturday, October 4, 2014 5:47 PM

All replies

  • Hi,

    your unattend file calls SetupComplete from a network share, but it seems that this share isn't present at this moment. Where/when did you mount drive "E:"? To be sure, you can start CMD.EXE without any additional parameters in order to get the command window at this moement, then take a look on the mounted network shares (IMO there will be none).

    If you need to mount the "E:" in before you can either add an additional command to the SynchronousCommands before calling your CMD file, or chaning your existing on to call a CMD file on the target's file system which mounts the volumes and so on...

    Best regards
    Willi K.

    Thursday, October 9, 2014 7:10 AM
  • Hi Willi,

    I don't have any preference when the setupcomplete.cmd script runs as long as it install my apps during the unattend install or after the fist login. If you have any suggestions for me to tweak my Apps.bat or Setupcomplete.cmd that could help me get it run during unattend, please do so.

    I know for sure my network share drive which is E: is working because I've another Syncrhonous command inside my unattend XML which installs VMware tools and it does pull the VMware tools during unattend which means it connects to my network shared E drive. Here is that portion from my unattend XML file which install VMware tools.

    </RunSynchronousCommand>
                    <RunSynchronousCommand wcm:action="add">
                        <Credentials>
                            <Domain>Mikasa.local</
    Domain>
                           
    <Password>Ghtwhts2015</Password>
                            <Username>Administrator</
    Username>
                       
    </Credentials>
                        <Path>\\WDS-DEP-SERV\E\Distribution\Drivers\setup64.exe /
    s /v &quot;/qn REBOOT=ReallySuppress&quot; /l C:\Windows\Temp\vmware_tools_install.log</Path>
                        <Order>4</
    Order>

    It's been weeks now since I've been trying to figure this out and have failed so far. I know this can be done but somehow it's not working for me. Please suggest me something or walk me through exactly how I can have my apps installed during unattend installation. Some people said to use MDT, it know it's easier to do that way but I would like to get it implemented via WDS only.

    This is the only piece missing during my unattend.

    Thanks

    Thursday, October 9, 2014 2:13 PM
  • BTW, I even tried by changing the command parameters from "cmd /C start /wait E:\RemoteInstall\Images\Windows8\install\$OEM$\$$\Setup\Scripts\SetupComplete.cmd" to "cmd /C start /wait \\WDS-DEP-SERV\E\RemoteInstall\Images\Windows8\install\$OEM$\$$\Setup\Scripts\SetupComplete.cmd". This didn't work, so I changed it again by doing this "net use z:\\WDS-DEP-SERV\E\RemoteInstall\Images\Windows8\install\$OEM$\$$\Setup\Scripts\SetupComplete.cmd. This didn't work either.                                                                                       
    Thursday, October 9, 2014 2:25 PM