Deployment and Imaging Group

 View Only

How to Perform a Scripted OS installation Using Altiris Deployment Solution 7.1 

Sep 27, 2011 02:47 PM

Deployment solution which has various deployment features like deploying and managing servers, desktops, and notebooks from a centralized location in your environment. The solution also offers OS deployment, configuration, PC personality migration, and software deployment across hardware platforms and OS types.

In this article I will try to cover a simple way of performing a Scripted OS installation for Windows OS.

To create a task for scripted OS install go to Jobs and tasks and from tasks menu select ‘Install OS Install’ and follow the below mentioned steps.

·         Provide the name for the Scripted OS task :

·         Provide the authentication of your NS server

·         Add the OS package using Add from task page

There are two ways to import the OS source package in to DS server , One is form the Scripted OS install task page itself , you can see a Add button under System files , when you click this you will get following UI in which you can specify the OS package details and using  Add files button browse to the OS source files and import the OS packages ;

Remember this , if the OS is Windows XP or Windows 2003, for 32 bit architecture you have to upload the ‘I386’ complete folder and in case of 64 bit architecture you have select ‘AMD64’ and ‘I386’ both.

Where as in case of Vista , Windows 7 and Windows 2008 server you have to select and upload ‘sources’ folder ;

·         Add OS package Using  Resource import tool

The second way of uploading the OS packages is by using the resource import tool which can be found at : <NSServer>\Deployment\Task Handler\Tools , execute ResourceImportTool.exe , and select the tab ‘OS file import’ , provide the OS folder (as mentioned above ,e.g I386, sources) and say import. This is the fastest way of importing OS packages in to the DS server.

User can verify if the OS files are copied correctly at the location :  <NSserver>\ Deployment\Task Handler\SOI ;  User can also verify the folder size of the OS package , as it requires the complete package folder for the installation , and if the size is not matching then it’s better to upload the files again , This is just for extra check , otherwise there is not issue in import as of now.

If you have imported the packages using ResourceImportTool  , it will be available In the ‘OS source’ list in the Scripted OS install task page.

·         Add product key

User needs to provide the product key (License key) for the corresponding OS package This is a compulsory filed and scripted OS install task cannot be save without this data.

A product key also can be managed from the NS console : Settings -> All Settings -> OS Licenses   

·         Enable Install Driver

Enable the option to install drivers from Driver database during OS installation , This is one of the new feature provided by DS 7.1 , to make sure all required drivers for the OS installation for any hardware is ready with the drivers and target machine will be up and running with all devices running , even if the driver for the devices and not present in the OS packages

There are several Hardware vendors and they introduce new devices very often , and the required drivers for the device is not available in the OS , then its users job to install the drivers to use the device ,but in a case if some critical drivers (MSD or NIC) are missing then user will see a BLUE dump on the screen on the client machine. Using the ‘Install Drivers’ option, which in the backend uses the DeployAnywhere feature to find out missing driver for the client machine for the selected OS type and compare this with the driver database , and if it finds the matching driver , then while installation Scripted OS install task makes sure the driver is been installed and device is up and running ;

Here the user has to make sure he/she has added the required driver in to the driver database ; the following article may be useful in managing the drivers required by DeployAnywhere feature ,

 https://www-secure.symantec.com/connect/articles/using-driver-management-form-ds-console-manage-device-drivers-and-best-practices

·         Use Inventory data

Using inventory data option mainly useful if the client machine is already managed by the NS and user may want to use the inventory data of the client machine available in the NS server which installation , this is mainly Client host name and other settings.

·         Join a domain

A client machine on which you are installing the OS can be specified to join the domain , the domain and user details are needs to be provided .

·         Use default configuration settings

By selecting this option Scripted OS install will apply the default settings while OS install.

An inventory Answer file and a default configuration answer files can be seen at : <NSServer>\NSCap\bin\Win32\X86\Deployment\SOI\AnswerFile

·         Provide custom configuration file (Custom answer file)

By using this option user can provide the user Answer file , this is commonly used option as user can specify lot many settings , configuration depending upon their environment. If you need to customize the answer file or add drivers I recommend to install and use the Windows AIK

·         Advanced option

Advanced option provides user to provides few more options like selecting disk number and drive number , selecting regional settings and screen resolutions settings ;

Make user for applying language setting the OS packages has the selected language support.

·         Different ways of executing Scripted OS install task

1.       For managed clients

A single client job can be created which can included following tasks in sequence

-Reboot to Automation / Reboot to PXE

-Erase disk

-Partition disk

-Scripted Os Install Task

 

2.       For  unmanaged clients

-Boot using PXE

-Erase disk

-Partition disk

-Scripted Os Install Task

 

3.       Using a custom answer file

-Specify all the details about partition and other settings

-Boot to Automation or PXE

-Execute Scripted OS install task

This is a client job to perform a scripted OS install for the windows 2003

When  a Scripted OS install is executed successful  the altiris agent will get installed and gets connected to the NS server.

Statistics
0 Favorited
8 Views
1 Files
0 Shares
3 Downloads
Attachment(s)
docx file
How to perform a Scripted OS installation Using Altiris D....docx   642 KB   1 version
Uploaded - Feb 25, 2020

Tags and Keywords

Comments

May 31, 2016 07:22 AM

The SiteServer token seems to work as expected. It is setup the same way as described above. It has issues mapping the drive.

May 31, 2016 07:00 AM

Hi RMSHAH50

%SiteServer% does not come out of the box. Did you try to add the custom token as per article below:?

https://www-secure.symantec.com/connect/forums/site-server-token

thanks

May 31, 2016 06:44 AM

I tried using %SiteServer%, but it still does not map the drive. I added couple pause to verify I am receiving the correct SiteServer & Model name. That seem to be working as expected, but when it is trying to map the drive it fails. Please advise.

Thanks !

---------------------------------------------------------------------------

@echo off

echo %SiteServer%
pause


for /F "skip=1 tokens=*" %%a in ('wmic csproduct get name') do if not defined model set model=%%a

Set ModelName=%model%

echo %ModelName%
pause
 

net use M: "\\%SiteServer%\Drivers\%ModelName%\Win7\x64" password /user:domain\username

net use
pause

xcopy M:\*.* C:\Drivers

---------------------------------------------------------------------------

May 29, 2016 10:10 AM

How about replacing \\SiteServer\Drivers... with \\%SiteServer%\Drivers...?

 

kr,

Dawi_x

May 27, 2016 05:34 PM

Thank you guys for your quick response. I really appreciate it. I was able to install SMA by adding the FirstLogonCommand option in the Unattend file.

The other challenge I have is copying model specific drivers in DS 7.6. I use the following script to copy drivers. But, it errors out. It is not able to find the network path. System error 86.

----------------------------------------------------------------------------------------------------------

@echo off

SiteServer = %SiteServer% (This is a token & the SQL query works).

for /F "skip=1 tokens=*" %%a in ('wmic csproduct get name') do if not defined model set model=%%a

Set ModelName=%model%
 

net use M: "\\SiteServer\Drivers\%ModelName%\Win7\x64" password /user:domain\username

xcopy M:\*.* C:\Drivers

--------------------------------------------------------------------------------------------------------------

Please advise.

 


pause

May 27, 2016 03:20 PM

Under the Sources folder in your image it creates:

$OEM$\$$\Setup\Scripts  In this scripts folder it creates two files.  One is a setupcomplete.cmd that runs automatically at the end of the OS install and it is set to run: %WINDIR%/setup/scripts/Agent.bat which also is in that same folder location above.

This is all from 7.5 but 99.5% applies to 7.1 just different file names.  I had to dump SOI in 7.5 and moved to usb SOI installs because 7.5 upgrade broke my SOI.  Altiris support was not very willing to work with me on resolving because they said SOI is rarely used by the customers.  Personally I think it would of probably worked if I would of scrapped my environment and started with a new build of 7.5.

Here is an example of what my custom Agent.bat file looks like so that the agent and all plugins are installed:

echo %date%,%time%,errorlevel: %errorlevel%,setupcomplete.CMD: End >> c:\RISlog\deployment.log
verify >nul
echo ********************************************************************** >> c:\RISlog\deployment.log
echo %date%,%time%,errorlevel: %errorlevel%,Installing wmic: Begin >> c:\RISlog\Deployment.log
WMIC EXIT >> c:\RISlog\Deployment.log 2>&1
echo %date%,%time%,errorlevel: %errorlevel%,Installing wmic: End >> c:\RISlog\Deployment.log
echo **********************************************************************
echo *   HELP-                                                            *
echo *        If windows gets stuck on:                                   *
echo *         "Windows is finalizing your settings"                      *
echo *           shift+F10 will open command prompt                       *
echo *                                                                    *
echo *                                                                    *
echo **********************************************************************
:380
echo **********************************************************************
echo *                   380 - SMP Agent Install                          *
echo **********************************************************************
echo %date%,%time%,errorlevel: %errorlevel%,380 Symantec Altiris Agent: Begin >> c:\RISlog\deployment.log
rem  **********************************************************************
rem  *                       Agent Check and Install                      *
rem  **********************************************************************
if exist "C:\Program Files\Altiris\Altiris Agent\AeXNSAgent.exe" goto :380a
echo %date%,%time%,errorlevel: %errorlevel%,380 Symantec Altiris Agent - Not Found >> c:\RISlog\deployment.log
START /WAIT c:\install3\Symantec\AltirisAgent\AeXNSC.exe -s -a ns=ber-ap21.motorwheelcvs.com nsweb=http://ber-ap21.motorwheelcvs.com/Altiris /s
rem START /WAIT c:\install3\Symantec\AltirisAgent\AeXClientUpgrade.exe
echo %date%,%time%,errorlevel: %errorlevel%,380 Symantec Altiris Agent: End >> c:\RISlog\deployment.log
IF ERRORLEVEL 1 GOTO fail
goto :381

rem  **********************************************************************
rem  *                       Agent Check                                  *
rem  **********************************************************************
setlocal EnableDelayedExpansion
rem set loop counter for up to 2 minutes
set X=12
rem set loop counter for up to 6.25 minutes
set W=25
echo %date%,%time%,errorlevel: %errorlevel%,Stop Altiris Agent: Begin >> c:\RISlog\Deployment.log
if not exist "C:\Program Files\Altiris\Altiris Agent\AeXNSAgent.exe" goto :aexnotfound
goto :aexfound
:aexnotfound
echo %date%,%time%,errorlevel: %errorlevel%,Altiris Agent Not Found >> c:\RISlog\Deployment.log
echo **********************************************************************
echo *                       Loop Wait 10 Sec                             *
echo **********************************************************************
echo waiting 30 seconds >> c:\RISlog\Deployment.log
ping 1.1.1.1 -n 1 -w 30000 > nul
verify >nul
goto :aexfound

:aexfound
if not exist "C:\Program Files\Altiris\Altiris Agent\AeXNSAgent.exe" goto :1Loop
echo %date%,%time%,errorlevel: %errorlevel%,Altiris Agent Running check >> c:\RISlog\Deployment.log
tasklist /FI "IMAGENAME eq AeXNSAgent.exe" 2>NUL | find /I /N "AeXNSAgent.exe">NUL
IF ERRORLEVEL 0 IF NOT ERRORLEVEL 1 GOTO :380a
goto :1Loop

:1LOOP
echo **********************************************************************
echo *                       Loop Wait 10 Sec                             *
echo **********************************************************************
echo %date%,%time%,errorlevel: %errorlevel%,Altiris Agent Running WAIT >> c:\RISlog\Deployment.log
if !M! gtr !W! goto :fail
echo waiting 15 seconds >> c:\RISlog\Deployment.log
ping 1.1.1.1 -n 1 -w 15000 > nul
verify >nul
set /a M+=1
echo %date%,%time%,errorlevel: %errorlevel%,Altiris Agent Not Running: Value M = %M% >> c:\RISlog\Deployment.log
GOTO :aexfound

:380a
REM **********************************************************************
REM *                  Agent Check - COMPLETE                            *
REM **********************************************************************
echo %date%,%time%,errorlevel: %errorlevel%,Altiris Agent Found >> c:\RISlog\Deployment.log
verify >nul
GOTO :381

:381
echo **********************************************************************
echo *                   381 - Deployment x64 Agent Install               *
echo **********************************************************************
echo %date%,%time%,errorlevel: %errorlevel%,381 Symantec Deployment Plug-in: Begin >> c:\RISlog\deployment.log
rem  **********************************************************************
rem  *                       Plugin Check                                 *
rem  **********************************************************************
if exist "C:\Program Files\Altiris\Altiris Agent\Agents\Deployment\Agent\DeploymentSolutionAgent.dll" goto :382
echo %date%,%time%,errorlevel: %errorlevel%,381 Symantec Deployment Plug-in - Not Found >> c:\RISlog\deployment.log
rem  **********************************************************************
rem  *                       x64 Check                                    *
rem  **********************************************************************
echo %date%,%time%,errorlevel: %errorlevel%,Check x64 >> c:\RISlog\deployment.log
WMIC Path Win32_Processor Get AddressWidth /Format:list | findstr /i "64"
IF ERRORLEVEL 0 IF NOT ERRORLEVEL 1 GOTO :381x64
:381x32
echo %date%,%time%,errorlevel: %errorlevel%,x64 Not Found >> c:\RISlog\deployment.log
verify >nul
rem  **********************************************************************
rem  *                       wait 10 seconds to Begin                     *
rem  **********************************************************************
ping 1.1.1.1 -n 1 -w 10000 > nul
verify >nul
cd c:\install3\Symantec\x32\deployAgent
dir /b >> c:\RISlog\deployment.log
START /WAIT msiexec.exe /i "Symantec_DeploymentSolutionAgent_7_5_x86.msi" skipaim=1 /qn REBOOT=ReallySuppress
echo %date%,%time%,errorlevel: %errorlevel%,381 Symantec Deployment Plug-in: End >> c:\RISlog\deployment.log
IF ERRORLEVEL 1 GOTO fail
goto :382
:381x64
echo %date%,%time%,errorlevel: %errorlevel%, x64 Found >> c:\RISlog\deployment.log
verify >nul
rem  **********************************************************************
rem  *                       wait 10 seconds to Begin                     *
rem  **********************************************************************
ping 1.1.1.1 -n 1 -w 10000 > nul
verify >nul
cd c:\install3\Symantec\deployAgent
dir /b >> c:\RISlog\deployment.log
START /WAIT msiexec.exe /i "Symantec_DeploymentSolutionAgent_7_5_x64.msi" skipaim=1 /qn /L* c:\RISLog\dagent.log REBOOT=ReallySuppress
echo %date%,%time%,errorlevel: %errorlevel%,381 Symantec Deployment Plug-in: End >> c:\RISlog\deployment.log
IF ERRORLEVEL 1 GOTO fail

:382
echo **********************************************************************
echo *                   382 - Software Update Agent Install              *
echo **********************************************************************
echo %date%,%time%,errorlevel: %errorlevel%,382 Symantec PatchManagement Plug-in: Begin >> c:\RISlog\deployment.log
rem  **********************************************************************
rem  *                       Plugin Check                                 *
rem  **********************************************************************
if exist "C:\Program Files\Altiris\Altiris Agent\Agents\PatchMgmtAgent\PatchMgmtAgents.dll" goto :384
echo %date%,%time%,errorlevel: %errorlevel%,382 Symantec PatchManagement Plug-in - Not Found >> c:\RISlog\deployment.log
rem  **********************************************************************
rem  *                       x64 Check                                    *
rem  **********************************************************************
echo %date%,%time%,errorlevel: %errorlevel%,Check x64 >> c:\RISlog\deployment.log
WMIC Path Win32_Processor Get AddressWidth /Format:list | findstr /i "64"
IF ERRORLEVEL 0 IF NOT ERRORLEVEL 1 GOTO :382x64
:382x32
echo %date%,%time%,errorlevel: %errorlevel%,x64 Not Found >> c:\RISlog\deployment.log
verify >nul
rem  **********************************************************************
rem  *                       wait 10 seconds to Begin                     *
rem  **********************************************************************
rem ping 1.1.1.1 -n 1 -w 10000 > nul
verify >nul
cd c:\install3\Symantec\x32\PatchAgent
START /WAIT MsiExec.exe /qn REBOOT=ReallySuppress /i Altiris_PatchMgmtAgent_Win32_7_5.msi
echo %date%,%time%,errorlevel: %errorlevel%,382 Symantec PatchManagement Plug-in: End >> c:\RISlog\deployment.log
IF ERRORLEVEL 1 GOTO fail
GOTO :384
:382x64
echo %date%,%time%,errorlevel: %errorlevel%, x64 Found >> c:\RISlog\deployment.log
verify >nul
rem  **********************************************************************
rem  *                       wait 10 seconds to Begin                     *
rem  **********************************************************************
rem ping 1.1.1.1 -n 1 -w 10000 > nul
verify >nul
cd c:\install3\Symantec\PatchAgent
START /WAIT MsiExec.exe /qn REBOOT=ReallySuppress /i Altiris_PatchMgmtAgent_Win64_7_5.msi
echo %date%,%time%,errorlevel: %errorlevel%,382 Symantec PatchManagement Plug-in: End >> c:\RISlog\deployment.log
IF ERRORLEVEL 1 GOTO fail
GOTO :384

:383
echo **********************************************************************
echo *                   383 - Out of Band Agent Install                  *
echo **********************************************************************
echo %date%,%time%,errorlevel: %errorlevel%,383 Symantec Out of Band Plug-in: Begin >> c:\RISlog\deployment.log

:384
echo **********************************************************************
echo *                   384 - Software Management Solution Agent Install *
echo **********************************************************************
echo %date%,%time%,errorlevel: %errorlevel%,384 Symantec Software Management Solution Plug-in: Begin >> c:\RISlog\deployment.log
rem  **********************************************************************
rem  *                       Plugin Check                                 *
rem  **********************************************************************
if exist "C:\Program Files\Altiris\Altiris Agent\Agents\Software Management Solution Plugin\SoftwareManagementSolution_Agent.dll" goto :385
echo %date%,%time%,errorlevel: %errorlevel%,384 Symantec Software Management Solution Plug-in - Not Found >> c:\RISlog\deployment.log
rem  **********************************************************************
rem  *                       x64 Check                                    *
rem  **********************************************************************
echo %date%,%time%,errorlevel: %errorlevel%,Check x64 >> c:\RISlog\deployment.log
WMIC Path Win32_Processor Get AddressWidth /Format:list | findstr /i "64"
IF ERRORLEVEL 0 IF NOT ERRORLEVEL 1 GOTO :384x64
:384x32
echo %date%,%time%,errorlevel: %errorlevel%,x64 Not Found >> c:\RISlog\deployment.log
verify >nul
rem  **********************************************************************
rem  *                       wait 10 seconds to Begin                     *
rem  **********************************************************************
ping 1.1.1.1 -n 1 -w 10000 > nul
verify >nul
cd c:\install3\Symantec\x32\SMSolutionAgent
START /WAIT msiexec.exe /i "SoftwareManagementSolution_Plugin_x86.msi" ALLUSERS=1 INSTALLPORTAL=1 PORTALSTARTMENU=TRUE PORTALDESKTOPMENU=TRUE PORTALADDREMOVE=TRUE PORTALAGENTMENU=TRUE /qn
echo %date%,%time%,errorlevel: %errorlevel%,384 Symantec Software Management Solution Plug-in: End >> c:\RISlog\deployment.log
IF ERRORLEVEL 1 GOTO fail
goto :385
:384x64
echo %date%,%time%,errorlevel: %errorlevel%, x64 Found >> c:\RISlog\deployment.log
verify >nul
rem  **********************************************************************
rem  *                       wait 10 seconds to Begin                     *
rem  **********************************************************************
ping 1.1.1.1 -n 1 -w 10000 > nul
verify >nul
cd c:\install3\Symantec\SMSolutionAgent
START /WAIT msiexec.exe /i "SoftwareManagementSolution_Plugin_x64.msi" ALLUSERS=1 INSTALLPORTAL=1 PORTALSTARTMENU=TRUE PORTALDESKTOPMENU=TRUE PORTALADDREMOVE=TRUE PORTALAGENTMENU=TRUE /qn
echo %date%,%time%,errorlevel: %errorlevel%,384 Symantec Software Management Solution Plug-in: End >> c:\RISlog\deployment.log
IF ERRORLEVEL 1 GOTO fail

:385
echo **********************************************************************
echo *                   385 - Inventory Agent Install                    *
echo **********************************************************************
echo %date%,%time%,errorlevel: %errorlevel%,385 Symantec Inventory Plug-in: Begin >> c:\RISlog\deployment.log
rem  **********************************************************************
rem  *                       Plugin Check                                 *
rem  **********************************************************************
if exist "C:\Program Files (x86)\Altiris\Altiris Agent\Agents\Inventory Agent\InvAgent.dll" goto :386
if exist "C:\Program Files\Altiris\Altiris Agent\Agents\Inventory Agent\InvAgent.dll" goto :386
echo %date%,%time%,errorlevel: %errorlevel%,385 Symantec Inventory Plug-in - Not Found >> c:\RISlog\deployment.log
rem  **********************************************************************
rem  *                       wait 10 seconds to Begin                     *
rem  **********************************************************************
ping 1.1.1.1 -n 1 -w 10000 > nul
verify >nul
cd c:\install3\Symantec\InvAgent
START /WAIT msiexec.exe /i Symantec_InventoryAgent_x86.msi /qn REBOOT=ReallySuppress ALLUSERS=1
echo %date%,%time%,errorlevel: %errorlevel%,385 Symantec Inventory Plug-in: End >> c:\RISlog\deployment.log
IF ERRORLEVEL 1 GOTO fail

:386
echo **********************************************************************
echo *                   386 - Application Metering Agent Install         *
echo *                     Pre-requisite Inventory Solution agent         *
echo **********************************************************************
echo %date%,%time%,errorlevel: %errorlevel%,386 Symantec Application Metering Plug-in: Begin >> c:\RISlog\deployment.log
rem  **********************************************************************
rem  *                       Plugin Check                                 *
rem  **********************************************************************
if exist "C:\Program Files (x86)\Altiris\Altiris Agent\Agents\Application Metering Agent\AMAgent.dll" goto :387
if exist "C:\Program Files\Altiris\Altiris Agent\Agents\Application Metering Agent\AMAgent.dll" goto :387
echo %date%,%time%,errorlevel: %errorlevel%,386 Symantec Application Metering Plug-in - Not Found >> c:\RISlog\deployment.log
rem  **********************************************************************
rem  *                       wait 10 seconds to Begin                     *
rem  **********************************************************************
ping 1.1.1.1 -n 1 -w 10000 > nul
verify >nul
cd c:\install3\Symantec\AppMeterAgent
START /WAIT msiexec.exe /i AMAgentSetup.msi /qn REBOOT=ReallySuppress ALLUSERS=1
echo %date%,%time%,errorlevel: %errorlevel%,386 Symantec Application Metering Plug-in: End >> c:\RISlog\deployment.log
IF ERRORLEVEL 1 GOTO fail

:387
echo **********************************************************************
echo *                   387 - Power Scheme Agent Install                 *
echo **********************************************************************
echo %date%,%time%,errorlevel: %errorlevel%,387 Symantec Power Scheme Plug-in: Begin >> c:\RISlog\deployment.log
rem  **********************************************************************
rem  *                       Plugin Check                                 *
rem  **********************************************************************
if exist "C:\Program Files\Altiris\Altiris Agent\Agents\PowerSchemeAgent\PowerSchemeAgent.dll" goto :388
echo %date%,%time%,errorlevel: %errorlevel%,387 Symantec Power Scheme Plug-in - Not Found >> c:\RISlog\deployment.log
rem  **********************************************************************
rem  *                       x64 Check                                    *
rem  **********************************************************************
echo %date%,%time%,errorlevel: %errorlevel%,Check x64 >> c:\RISlog\deployment.log
WMIC Path Win32_Processor Get AddressWidth /Format:list | findstr /i "64"
IF ERRORLEVEL 0 IF NOT ERRORLEVEL 1 GOTO :387x64
:387x32
echo %date%,%time%,errorlevel: %errorlevel%,x64 Not Found >> c:\RISlog\deployment.log
verify >nul
rem  **********************************************************************
rem  *                       wait 10 seconds to Begin                     *
rem  **********************************************************************
rem ping 1.1.1.1 -n 1 -w 10000 > nul
verify >nul
echo %date%,%time%,errorlevel: %errorlevel%,387 Symantec Power Scheme Plug-in Install: Begin >> c:\RISlog\deployment.log
cd c:\install3\Symantec\PowerAgent
START /WAIT msiexec.exe /i Altiris_PowerSchemeAgent_x86.msi /qn ALLUSERS=1 REBOOT=ReallySuppress REBOOTPROMPT="S"
echo %date%,%time%,errorlevel: %errorlevel%,387 Symantec Power Scheme Plug-in Install: End >> c:\RISlog\deployment.log
echo %date%,%time%,errorlevel: %errorlevel%,387 Symantec Power Scheme Plug-in: End >> c:\RISlog\deployment.log
IF ERRORLEVEL 1 GOTO fail
goto :388
:387x64
echo %date%,%time%,errorlevel: %errorlevel%, x64 Found >> c:\RISlog\deployment.log
verify >nul
rem  **********************************************************************
rem  *                       wait 10 seconds to Begin                     *
rem  **********************************************************************
rem ping 1.1.1.1 -n 1 -w 10000 > nul
verify >nul
echo %date%,%time%,errorlevel: %errorlevel%,387 Symantec Power Scheme Plug-in Install: Begin >> c:\RISlog\deployment.log
cd c:\install3\Symantec\PowerAgent
START /WAIT msiexec.exe /i Altiris_PowerSchemeAgent_x64.msi /qn ALLUSERS=1 REBOOT=ReallySuppress REBOOTPROMPT="S"
echo %date%,%time%,errorlevel: %errorlevel%,387 Symantec Power Scheme Plug-in Install: End >> c:\RISlog\deployment.log
echo %date%,%time%,errorlevel: %errorlevel%,387 Symantec Power Scheme Plug-in: End >> c:\RISlog\deployment.log
IF ERRORLEVEL 1 GOTO fail

:388
echo **********************************************************************
echo *                   388 - PCAnywhere Agent Install                   *
echo **********************************************************************
echo %date%,%time%,errorlevel: %errorlevel%,388 Symantec PCAnywhere Plug-in: Begin >> c:\RISlog\deployment.log
rem  **********************************************************************
rem  *                       Plugin Check                                 *
rem  **********************************************************************
if exist "C:\Program Files (x86)\Symantec\pcAnywhere\pcAAgent.dll" goto :389
echo %date%,%time%,errorlevel: %errorlevel%,388 Symantec PCAnywhere Plug-in - Not Found >> c:\RISlog\deployment.log
rem  **********************************************************************
rem  *                       wait 10 seconds to Begin                     *
rem  **********************************************************************
ping 1.1.1.1 -n 1 -w 10000 > nul
verify >nul
cd c:\install3\Symantec\pcAAgent
echo %date%,%time%,errorlevel: %errorlevel%,388 Symantec PCAnywhere Plug-in INSTALL: Begin >> c:\RISlog\deployment.log
pcAClientInstallManager.exe /iall
echo %date%,%time%,errorlevel: %errorlevel%,388 Symantec PCAnywhere Plug-in INSTALL: End >> c:\RISlog\deployment.log
echo %date%,%time%,errorlevel: %errorlevel%,388 Symantec PCAnywhere Plug-in: End >> c:\RISlog\deployment.log
IF ERRORLEVEL 1 GOTO fail
echo %date%,%time%,errorlevel: %errorlevel%,388 PCAnywhere HKLM: Begin >> c:\RISlog\deployment.log
START /WAIT REGEDIT /S c:\install3\Symantec\pcAAgent\pcAnywhere.reg >> c:\RISlog\deployment.log
echo %date%,%time%,errorlevel: %errorlevel%,388 PCAnywhere HKLM: End >> c:\RISlog\deployment.log
cd c:\install3
GOTO :end

:389
goto :end

:fail
echo %date%,%time%,errorlevel: %errorlevel%,389 Symantec Plug-in install failed >> c:\RISlog\deployment.log
exit
:end
echo %date%,%time%,errorlevel: %errorlevel%,389 Symantec Plug-in install Success >> c:\RISlog\deployment.log
exit

 

May 26, 2016 05:10 PM

When you do a scripted install the Agent will install based on your automation policy. By default ours installed when the scripted install was performed. It has been a while since we were on 7.1 so I am just going from memory. You can always do a quick delivery job to install the agent should it not be there or even a manual install will work via a script or manual method to install the agent.

 

May 26, 2016 03:38 PM

How does the Altiris agent get installed ? We are trying to setup similar process of OS imaging but not sure how to install the Symantec Management Agent right after the OS installed. Please advise.

Apr 14, 2013 05:30 AM

Hi, can you address the comments made by Mohammad Bamya please as I dont feel these are covered anywhere with regard to deplying a scripted install of Win7

Mar 22, 2013 03:39 PM

If you're installing x64, you need to make sure your pre-boot (PXE) is the 64bit version as well.  You can't install x64 under the x86 boot image.

Jul 13, 2012 04:08 AM

For any failure you can check log files at sever side , i.e at C:\programdata\Symantec\SMP\Logs ;n also at the client machine when it is in WinPE if you see a failure , log file will be created for each Deployment task. You can check log file at X:\program files\altiris\deployment\log folder

Mar 15, 2012 03:22 PM

We do this using a custom configuration file (answer file created using Windows System Image Manager, a part of WAIK). The particular part you want is in the windowsPE stage, Microsoft-Windows-Setup>DiskConfiguration. Insert a new disk, add a create partition section to create a primary partition and a modify partition section to format it to NTFS, label it, set it as drive C, etc. Screenshot showing the modify properties attached.

Mar 15, 2012 02:04 PM

Is there any additional information on how partition a drive for Windows 7?  I've tried this a couple of times and it appears to fail on "Install Windows OS" task.  I successfully got it to work with Windows XP.

Also is there any way to get more information returned than just "Failed" to help me troubleshoot this?

Thanks,

Jan 04, 2012 09:17 AM

Thanks, that will help a lot during first steps.

Dec 27, 2011 01:20 PM

Excellent! Thank you. Great article!

Oct 03, 2011 11:39 PM

This is a great article, however the answer file (Unattend_Inventory_Wind7.xml) which is in-use for deploying windows 7, still need modifications as it doesn't contain default language and keyboard once the windows installation starts.

The other part the admin needs to handle is how the sub agents will be pushed and how to install the required applications after imaging.

Related Entries and Links

No Related Resource entered.