3 Replies Latest reply on Mar 18, 2010 1:08 AM by Christoph.Markert

    Provisioning variables

    Apprentice

      Hi

       

      I am new to provisioning, using version 9 LANDesk.

       

      I have an issue where when i inject a script, and it has the %COMPUTER% variable, the provisioning doesnt work. It errors out. However, i need the variable to grab thw machine name for the sysprep.

       

      How do i use it and prevent it from crashing?

       

      Thanks in Advance

       

      Ryan

       

       

      The XML file is below.

       

      <?xml version="1.0" encoding="utf-8"?>
      <unattend>
        <settings pass="auditSystem">
          <component name="Microsoft-Windows-PnpCustomizationsNonWinPE" 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">
            <DriverPaths>
              <PathAndCredentials wcm:keyValue="1" wcm:action="add">
                <Path>c:\windows\LDDriverStore</Path>
              </PathAndCredentials>
            </DriverPaths>
          </component>
          <component name="Microsoft-Windows-Shell-Setup" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" processorArchitecture="x86">
            <UserAccounts>
              <AdministratorPassword>
                <PlainText>true</PlainText>
                <Value>atcgc123</Value>
              </AdministratorPassword>
            </UserAccounts>
            <AutoLogon>
              <Enabled>true</Enabled>
              <Username>Administrator</Username>
              <Password>
                <PlainText>true</PlainText>
                <Value>******</Value>
              </Password>
              <LogonCount>1</LogonCount>
            </AutoLogon>
          </component>
        </settings>
        <settings pass="auditUser">
          <component name="Microsoft-Windows-Deployment" 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">
            <RunSynchronous>
              <RunSynchronousCommand wcm:action="add">
                <Order>1</Order>
                <Path>c:\windows\System32\sysprep\sysprep.exe /oobe /reboot </Path>
              </RunSynchronousCommand>
            </RunSynchronous>
          </component>
        </settings>
        <settings pass="oobeSystem">
          <component name="Microsoft-Windows-Shell-Setup" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" processorArchitecture="x86">
            <OOBE>
              <HideEULAPage>true</HideEULAPage>
              <ProtectYourPC>1</ProtectYourPC>
              <SkipMachineOOBE>true</SkipMachineOOBE>
              <SkipUserOOBE>true</SkipUserOOBE>
            </OOBE>
            <ProductKey>XDX3C-CYWCK-M4MHQ-PWHQ7-CV86B</ProductKey>
            <RegisteredOwner>ICT Manager</RegisteredOwner>
            <RegisteredOrganization>Australian Industry Trade College</RegisteredOrganization>
            <TimeZone>E. Australia Standard Time</TimeZone>
            <UserAccounts>
              <AdministratorPassword>
                <PlainText>true</PlainText>
                <Value>atcgc123</Value>
              </AdministratorPassword>
            </UserAccounts>
            <AutoLogon>
              <Enabled>true</Enabled>
              <Username>Administrator</Username>
              <Password>
                <PlainText>true</PlainText>
                <Value>atcgc123</Value>
              </Password>
              <LogonCount>1</LogonCount>
            </AutoLogon>
            <FirstLogonCommands>
              <SynchronousCommand>
                <CommandLine>c:\ldsleep.exe 30</CommandLine>
                <Description></Description>
                <Order>1</Order>
              </SynchronousCommand>
              <SynchronousCommand>
                <CommandLine>cmd /q /c del /q c:\ldsleep.exe</CommandLine>
                <Description></Description>
                <Order>2</Order>
              </SynchronousCommand>
              <SynchronousCommand>
                <CommandLine>cmd /q /c del /q c:\unattend.xml</CommandLine>
                <Description></Description>
                <Order>3</Order>
              </SynchronousCommand>
              <SynchronousCommand>
                <CommandLine>net use \\wrench\ldlogon p0r5cher /u:admin\techserv</CommandLine>
                <Description></Description>
                <Order>4</Order>
              </SynchronousCommand>
              <SynchronousCommand>
                <CommandLine>cmd /q /c \\wrench\ldlogon\wscfg32.exe /F /L /STATUS /NOREBOOT</CommandLine>
                <Description></Description>
                <Order>5</Order>
              </SynchronousCommand>
              <SynchronousCommand>
                <CommandLine>net use \\wrench\ldlogon /d /y</CommandLine>
                <Description></Description>
                <Order>6</Order>
              </SynchronousCommand>
              <SynchronousCommand>
                <CommandLine>cmd /q /c del /q c:\ldiscan.cfg</CommandLine>
                <Description></Description>
                <Order>7</Order>
              </SynchronousCommand>
            </FirstLogonCommands>
          </component>
        </settings>
        <settings pass="specialize">
          <component name="Microsoft-Windows-Shell-Setup" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" processorArchitecture="x86">
            <ComputerName>%COMPUTER%</ComputerName>
          </component>
          <component name="Microsoft-Windows-UnattendedJoin" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" processorArchitecture="x86">
            <Identification>
              <Credentials>
                <Domain>ADMIN</Domain>
                <Username>admin\techserv</Username>
                <Password>p0r5cher</Password>
              </Credentials>
              <JoinDomain>ADMIN</JoinDomain>
            </Identification>
          </component>
        </settings>
      </unattend>