Based on the TECH article I whipped together this script that I threw in DS 6.9:
REM Checks and Fixes PCAnywhere Host
for /F "tokens=3 delims=: " %%H in ('sc query awhost32 ^| findstr " STATE"') do (
if /I "%%H" NEQ "RUNNING" (
del "C:\Documents and Settings\All Users\Application Data\Symantec\pcAnywhere\Hosts\ADS*.CIF"
copy /Y "\\MYDSSERVER\Software\Symantec\PCAnywhere\SMP\InvalidFileFix\pcANSHost.BHF" "C:\Documents and Settings\All Users\Application Data\Symantec\pcAnywhere\Hosts\pcANSHost.BHF"
copy /Y "\\MYDSSERVER\Software\Symantec\PCAnywhere\SMP\InvalidFileFix\ads.MYDOMAIN+altiris remote control - Standard.cif" "C:\Documents and Settings\All Users\Application Data\Symantec\pcAnywhere\Hosts\ads.MYDOMAIN+altiris remote control - Standard.cif"
copy /Y "\\MYDSSERVER\Software\Symantec\PCAnywhere\SMP\InvalidFileFix\ads.MYDOMAIN+altiris remote control - SuperUser.cif" "C:\Documents and Settings\All Users\Application Data\Symantec\pcAnywhere\Hosts\ads.MYDOMAIN+altiris remote control - SuperUser.cif"
"C:\Program Files\Symantec\pcAnywhere\awFileMgr.exe" /EncryptBeHost "C:\Documents and Settings\All Users\application data\Symantec\pcAnywhere\Hosts" "pcANSHost.BHF"
"C:\Program Files\Symantec\pcAnywhere\awFileMgr.exe" /EncryptCaller "C:\Documents and Settings\All Users\application data\Symantec\pcAnywhere\Hosts" "ads.MYDOMAIN+altiris remote control - Standard.cif"
"C:\Program Files\Symantec\pcAnywhere\awFileMgr.exe" /EncryptCaller "C:\Documents and Settings\All Users\application data\Symantec\pcAnywhere\Hosts" "ads.MYDOMAIN+altiris remote control - SuperUser.cif"
net start awhost32
)
)
If you haven't read the TECH article yet you absolutely need to before you try this script as you won't have the desired files without generating them yourself.
This script queries to see if the "Symantec PCAnywhere Host Service" (awhost32) is running and exits if it is. If the service is present and NOT running then it copies the files from a network share, imports/encrypts them, and then starts the service.
NOTE: the above syntax is for Windows XP. Windows 7 will be slightly different but that's covered in the TECH article.
Edited to obscure our domain info.
Edited again to add a "del" line to the script.