Does the K2000 have any Kace variables?
Hi all
Version 3.6 of Kace2000, my question arises because I'm trying to run a few commands such as "WUSA updatefile", having attached the file it fails, but on the client machine beings scripted I can run the command "wusa c:\kace\applications\taskid\updatefile" and it works, so I was wondering if its a path issue?
Can anyone confirm how the postinstallation scripts know where the attached file is ..the command prompt from client takes you to c:\kace\engine\, but tasks are copied to c:\kace\applications\tasked(s)
any pointers appreciated
Matt
0 Comments
[ + ] Show comments
Answers (1)
Answer Summary:
Please log in to answer
Posted by:
SMal.tmcc
10 years ago
They all get put in c:\kace\applications\XXX the XXX number corresponds to the task id in the imagingtasks_xx.xml file found at \\ikbox\peinst\scripts
here is one of mine. further down you see when it goes post and runs the tasks off the HDD
you see the location change in the working directory location
from the kbox
<WorkingDirectory>Y:\applications\29</WorkingDirectory>
from the local drive _post mode
<WorkingDirectory>%systemdrive%\KACE\Applications\249</WorkingDirectory>
<?xml version="1.0" encoding="utf-8"?>
<Tasks>
<Task ID="16">
<Name>Preinstallation Tasks</Name>
<WorkingDirectory>Y:\preinstall\16</WorkingDirectory>
<CommandLine><![CDATA[preinstallation_tasks.vbs]]></CommandLine>
<Parameters></Parameters>
<PostTaskAction>None</PostTaskAction>
<KACETaskType>Windows Script</KACETaskType>
<FileType>Batch</FileType>
<Type>PR</Type>
<Guid>153bea7ce61c4d</Guid>
</Task>
<Task ID="12">
<Name>Collect Computer Name</Name>
<WorkingDirectory>Y:\preinstall\12</WorkingDirectory>
<CommandLine><![CDATA[cscript GetComputerName.vbs]]></CommandLine>
<Parameters></Parameters>
<PostTaskAction>None</PostTaskAction>
<KACETaskType>Application</KACETaskType>
<FileType>Exe</FileType>
<Type>PR</Type>
<Guid>153bea7ce6241c</Guid>
</Task>
<Task ID="1">
<Name>Create Single Partition</Name>
<WorkingDirectory>Y:\preinstall\1</WorkingDirectory>
<CommandLine><![CDATA[diskpart /s create_single_partition.conf]]></CommandLine>
<Parameters></Parameters>
<PostTaskAction>None</PostTaskAction>
<KACETaskType>DISKPART Script</KACETaskType>
<FileType>Exe</FileType>
<Type>PR</Type>
<Guid>153bea7ce62bec</Guid>
</Task>
<Task ID="19">
<Name>Format C: as NTFS</Name>
<WorkingDirectory>Y:\preinstall\19</WorkingDirectory>
<CommandLine><![CDATA[format_c_as_ntfs.bat]]></CommandLine>
<Parameters></Parameters>
<PostTaskAction>None</PostTaskAction>
<KACETaskType>BAT Script</KACETaskType>
<FileType>Batch</FileType>
<Type>PR</Type>
<Guid>153bea7ce633be</Guid>
</Task>
<Task ID="18">
<Name>Apply Image</Name>
<WorkingDirectory>Y:\hta\x86</WorkingDirectory>
<CommandLine><![CDATA[Y:\scripts\system_image_wim_deploy_83.bat]]></CommandLine>
<Parameters></Parameters>
<PostTaskAction>None</PostTaskAction>
<KACETaskType>BAT Script</KACETaskType>
<FileType>Batch</FileType>
<Type>PR</Type>
<Guid>153bea7ce6435d</Guid>
</Task>
<Task ID="31">
<Name>Set KACE Path</Name>
<WorkingDirectory>Y:\applications\31</WorkingDirectory>
<CommandLine><![CDATA[set_kace_path.vbs]]></CommandLine>
<Parameters></Parameters>
<PostTaskAction>None</PostTaskAction>
<KACETaskType>Windows Script</KACETaskType>
<FileType>VBScript</FileType>
<Type>PO</Type>
<Guid>153bea7ce67625</Guid>
</Task>
<Task ID="276">
<Name>WIM - acad F14 atc210</Name>
<WorkingDirectory>Y:\applications\276</WorkingDirectory>
<CommandLine><![CDATA[cscript /b apply_TMCCwim.vbs F14atc210 1 C]]></CommandLine>
<Parameters></Parameters>
<PostTaskAction>None</PostTaskAction>
<KACETaskType>Application</KACETaskType>
<FileType>Exe</FileType>
<Type>PO</Type>
<Guid>153bea7ce67df4</Guid>
</Task>
<Task ID="37">
<Name>Apply Computer Name</Name>
<WorkingDirectory>Y:\applications\37</WorkingDirectory>
<CommandLine><![CDATA[cscript ApplyComputerName.vbs]]></CommandLine>
<Parameters></Parameters>
<PostTaskAction>None</PostTaskAction>
<KACETaskType>Application</KACETaskType>
<FileType>Exe</FileType>
<Type>PO</Type>
<Guid>153bea7ce685c3</Guid>
</Task>
<Task ID="270">
<Name>Bat - Acad F14 Pre1 Homework Assistant</Name>
<WorkingDirectory>Y:\applications\270\contents</WorkingDirectory>
<CommandLine><![CDATA[cscript /b invisible.vbs]]></CommandLine>
<Parameters></Parameters>
<PostTaskAction>None</PostTaskAction>
<KACETaskType>Application</KACETaskType>
<FileType>Exe</FileType>
<Type>PO</Type>
<Guid>153bea7ce68d95</Guid>
</Task>
<Task ID="271">
<Name>Bat - Acad F14 pre2 copy scanav.bat</Name>
<WorkingDirectory>Y:\applications\271\contents</WorkingDirectory>
<CommandLine><![CDATA[cscript /b invtest.vbs]]></CommandLine>
<Parameters></Parameters>
<PostTaskAction>None</PostTaskAction>
<KACETaskType>Application</KACETaskType>
<FileType>Exe</FileType>
<Type>PO</Type>
<Guid>153bea7ce69564</Guid>
</Task>
<Task ID="35">
<Name>Fix BCD</Name>
<WorkingDirectory>Y:\applications\35</WorkingDirectory>
<CommandLine><![CDATA[fix_bcd.vbs]]></CommandLine>
<Parameters></Parameters>
<PostTaskAction>None</PostTaskAction>
<KACETaskType>Windows Script</KACETaskType>
<FileType>VBScript</FileType>
<Type>PO</Type>
<Guid>153bea7ce69d33</Guid>
</Task>
<Task ID="24">
<Name>Copy Post Install Files</Name>
<WorkingDirectory>Y:\applications\24</WorkingDirectory>
<CommandLine><![CDATA[copy_post_install_files.vbs]]></CommandLine>
<Parameters></Parameters>
<PostTaskAction>None</PostTaskAction>
<KACETaskType>Windows Script</KACETaskType>
<FileType>VBScript</FileType>
<Type>PO</Type>
<Guid>153bea7ce6a504</Guid>
</Task>
<Task ID="26">
<Name>Setup Post Install Tasks</Name>
<WorkingDirectory>Y:\applications\26</WorkingDirectory>
<CommandLine><![CDATA[setup_post_install_tasks.vbs]]></CommandLine>
<Parameters></Parameters>
<PostTaskAction>None</PostTaskAction>
<KACETaskType>Windows Script</KACETaskType>
<FileType>VBScript</FileType>
<Type>PO</Type>
<Guid>153bea7ce6acd3</Guid>
</Task>
<Task ID="29">
<Name>Update Configuration For OS Tasks</Name>
<WorkingDirectory>Y:\applications\29</WorkingDirectory>
<CommandLine><![CDATA[updateconfig.vbs]]></CommandLine>
<Parameters></Parameters>
<PostTaskAction>Stop</PostTaskAction>
<KACETaskType>Windows Script</KACETaskType>
<FileType>VBScript</FileType>
<Type>PO</Type>
<Guid>153bea7ce6b4a4</Guid>
</Task>
<Task ID="28">
<Name>Set Engine Run Key</Name>
<WorkingDirectory>%systemdrive%\KACE\Applications\28</WorkingDirectory>
<CommandLine><![CDATA[set_engine_run_key.vbs]]></CommandLine>
<Parameters></Parameters>
<PostTaskAction>None</PostTaskAction>
<KACETaskType>Windows Script</KACETaskType>
<FileType>VBScript</FileType>
<Type>PO</Type>
<Guid>153bea7ce6e76d</Guid>
</Task>
<Task ID="23">
<Name>Disable UAC</Name>
<WorkingDirectory>%systemdrive%\KACE\Applications\23</WorkingDirectory>
<CommandLine><![CDATA[disable_uac.vbs]]></CommandLine>
<Parameters></Parameters>
<PostTaskAction>None</PostTaskAction>
<KACETaskType>Windows Script</KACETaskType>
<FileType>VBScript</FileType>
<Type>PO</Type>
<Guid>153bea7ce6ef3c</Guid>
</Task>
<Task ID="258">
<Name>Bat - Acad F14 post0 reset bootorder to HDD 1st</Name>
<WorkingDirectory>%systemdrive%\KACE\Applications\258</WorkingDirectory>
<CommandLine><![CDATA[bat_acad_f14_post0_reset_bootorder_to_hdd_1st.bat]]></CommandLine>
<Parameters></Parameters>
<PostTaskAction>None</PostTaskAction>
<KACETaskType>BAT Script</KACETaskType>
<FileType>Batch</FileType>
<Type>PO</Type>
<Guid>153bea7ce6f70e</Guid>
</Task>
<Task ID="249">
<Name>Bat - Acad F14 post1 cleanup and Join Domain</Name>
<WorkingDirectory>%systemdrive%\KACE\Applications\249</WorkingDirectory>
<CommandLine><![CDATA[bat_acad_f14_post1_cleanup_and_join_domain.bat]]></CommandLine>
<Parameters></Parameters>
<PostTaskAction>Reboot</PostTaskAction>
<KACETaskType>BAT Script</KACETaskType>
<FileType>Batch</FileType>
<Type>PO</Type>
<Guid>153bea7ce6fedc</Guid>
</Task>
<Task ID="15">
<Name>Apply KUID to K1000 Agent</Name>
<WorkingDirectory>%systemdrive%\KACE\Applications\15</WorkingDirectory>
<CommandLine><![CDATA[cscript setKUID.vbs]]></CommandLine>
<Parameters></Parameters>
<PostTaskAction>None</PostTaskAction>
<KACETaskType>Application</KACETaskType>
<FileType>Exe</FileType>
<Type>PO</Type>
<Guid>153bea7ce706ac</Guid>
</Task>
<Task ID="250">
<Name>Bat - Acad F14 post2 Kace and reg keys</Name>
<WorkingDirectory>%systemdrive%\KACE\Applications\250</WorkingDirectory>
<CommandLine><![CDATA[bat_acad_f14_post2_kace_and_reg_keys.bat]]></CommandLine>
<Parameters></Parameters>
<PostTaskAction>None</PostTaskAction>
<KACETaskType>BAT Script</KACETaskType>
<FileType>Batch</FileType>
<Type>PO</Type>
<Guid>153bea7ce70e7c</Guid>
</Task>
<Task ID="264">
<Name>Bat - Acad F14 post3 DS-vdf DeepFreeze install</Name>
<WorkingDirectory>%systemdrive%\KACE\Applications\264</WorkingDirectory>
<CommandLine><![CDATA[bat_acad_f14_post3_ds_vdf_deepfreeze_install.bat]]></CommandLine>
<Parameters></Parameters>
<PostTaskAction>None</PostTaskAction>
<KACETaskType>BAT Script</KACETaskType>
<FileType>Batch</FileType>
<Type>PO</Type>
<Guid>153bea7ce7165a</Guid>
</Task>
<Task ID="274">
<Name>Bat - Acad F14 Post3a reboot 20 seconds</Name>
<WorkingDirectory>%systemdrive%\KACE\Applications\274</WorkingDirectory>
<CommandLine><![CDATA[bat_acad_f14_post3a_reboot_20_seconds.bat]]></CommandLine>
<Parameters></Parameters>
<PostTaskAction>Reboot</PostTaskAction>
<KACETaskType>BAT Script</KACETaskType>
<FileType>Batch</FileType>
<Type>PO</Type>
<Guid>153bea7ce71e21</Guid>
</Task>
<Task ID="275">
<Name>Bat - Acad F14 Post3b ksleep 20 seconds</Name>
<WorkingDirectory>%systemdrive%\KACE\Applications\275</WorkingDirectory>
<CommandLine><![CDATA[bat_acad_f14_post3b_ksleep_20_seconds.bat]]></CommandLine>
<Parameters></Parameters>
<PostTaskAction>None</PostTaskAction>
<KACETaskType>BAT Script</KACETaskType>
<FileType>Batch</FileType>
<Type>PO</Type>
<Guid>153bea7ce725ec</Guid>
</Task>
<Task ID="273">
<Name>Bat - Acad F14 post4 install AV</Name>
<WorkingDirectory>%systemdrive%\KACE\Applications\273</WorkingDirectory>
<CommandLine><![CDATA[msiexec /i anti-virus_ent_32-bit.msi /qn /norestart]]></CommandLine>
<Parameters></Parameters>
<PostTaskAction>Reboot</PostTaskAction>
<KACETaskType>Application</KACETaskType>
<FileType>Exe</FileType>
<Type>PO</Type>
<Guid>153bea7ce72dbc</Guid>
</Task>
<Task ID="253">
<Name>Bat - Acad F14 post5 Fix/scan AV run kbot</Name>
<WorkingDirectory>%systemdrive%\KACE\Applications\253</WorkingDirectory>
<CommandLine><![CDATA[bat_acad_f14_post5_fix_scan_av_run_kbot.bat]]></CommandLine>
<Parameters></Parameters>
<PostTaskAction>None</PostTaskAction>
<KACETaskType>BAT Script</KACETaskType>
<FileType>Batch</FileType>
<Type>PO</Type>
<Guid>153bea7ce7358c</Guid>
</Task>
<Task ID="260">
<Name>Bat - Acad F14 post6 refreeze 2 boots</Name>
<WorkingDirectory>%systemdrive%\KACE\Applications\260</WorkingDirectory>
<CommandLine><![CDATA[bat_acad_f14_post6_refreeze_2_boots.bat]]></CommandLine>
<Parameters></Parameters>
<PostTaskAction>None</PostTaskAction>
<KACETaskType>BAT Script</KACETaskType>
<FileType>Batch</FileType>
<Type>PO</Type>
<Guid>153bea7ce73d5c</Guid>
</Task>
<Task ID="25">
<Name>Enable UAC</Name>
<WorkingDirectory>%systemdrive%\KACE\Applications\25</WorkingDirectory>
<CommandLine><![CDATA[enable_uac.vbs]]></CommandLine>
<Parameters></Parameters>
<PostTaskAction>None</PostTaskAction>
<KACETaskType>Windows Script</KACETaskType>
<FileType>VBScript</FileType>
<Type>PO</Type>
<Guid>153bea7ce7452d</Guid>
</Task>
<Task ID="27">
<Name>Cleanup</Name>
<WorkingDirectory>%systemdrive%\KACE\Applications\27</WorkingDirectory>
<CommandLine><![CDATA[cleanup.vbs]]></CommandLine>
<Parameters></Parameters>
<PostTaskAction>Reboot</PostTaskAction>
<KACETaskType>Windows Script</KACETaskType>
<FileType>VBScript</FileType>
<Type>PO</Type>
<Guid>153bea7ce74cfc</Guid>
</Task>
</Tasks>
here is one of mine. further down you see when it goes post and runs the tasks off the HDD
you see the location change in the working directory location
from the kbox
<WorkingDirectory>Y:\applications\29</WorkingDirectory>
from the local drive _post mode
<WorkingDirectory>%systemdrive%\KACE\Applications\249</WorkingDirectory>
<?xml version="1.0" encoding="utf-8"?>
<Tasks>
<Task ID="16">
<Name>Preinstallation Tasks</Name>
<WorkingDirectory>Y:\preinstall\16</WorkingDirectory>
<CommandLine><![CDATA[preinstallation_tasks.vbs]]></CommandLine>
<Parameters></Parameters>
<PostTaskAction>None</PostTaskAction>
<KACETaskType>Windows Script</KACETaskType>
<FileType>Batch</FileType>
<Type>PR</Type>
<Guid>153bea7ce61c4d</Guid>
</Task>
<Task ID="12">
<Name>Collect Computer Name</Name>
<WorkingDirectory>Y:\preinstall\12</WorkingDirectory>
<CommandLine><![CDATA[cscript GetComputerName.vbs]]></CommandLine>
<Parameters></Parameters>
<PostTaskAction>None</PostTaskAction>
<KACETaskType>Application</KACETaskType>
<FileType>Exe</FileType>
<Type>PR</Type>
<Guid>153bea7ce6241c</Guid>
</Task>
<Task ID="1">
<Name>Create Single Partition</Name>
<WorkingDirectory>Y:\preinstall\1</WorkingDirectory>
<CommandLine><![CDATA[diskpart /s create_single_partition.conf]]></CommandLine>
<Parameters></Parameters>
<PostTaskAction>None</PostTaskAction>
<KACETaskType>DISKPART Script</KACETaskType>
<FileType>Exe</FileType>
<Type>PR</Type>
<Guid>153bea7ce62bec</Guid>
</Task>
<Task ID="19">
<Name>Format C: as NTFS</Name>
<WorkingDirectory>Y:\preinstall\19</WorkingDirectory>
<CommandLine><![CDATA[format_c_as_ntfs.bat]]></CommandLine>
<Parameters></Parameters>
<PostTaskAction>None</PostTaskAction>
<KACETaskType>BAT Script</KACETaskType>
<FileType>Batch</FileType>
<Type>PR</Type>
<Guid>153bea7ce633be</Guid>
</Task>
<Task ID="18">
<Name>Apply Image</Name>
<WorkingDirectory>Y:\hta\x86</WorkingDirectory>
<CommandLine><![CDATA[Y:\scripts\system_image_wim_deploy_83.bat]]></CommandLine>
<Parameters></Parameters>
<PostTaskAction>None</PostTaskAction>
<KACETaskType>BAT Script</KACETaskType>
<FileType>Batch</FileType>
<Type>PR</Type>
<Guid>153bea7ce6435d</Guid>
</Task>
<Task ID="31">
<Name>Set KACE Path</Name>
<WorkingDirectory>Y:\applications\31</WorkingDirectory>
<CommandLine><![CDATA[set_kace_path.vbs]]></CommandLine>
<Parameters></Parameters>
<PostTaskAction>None</PostTaskAction>
<KACETaskType>Windows Script</KACETaskType>
<FileType>VBScript</FileType>
<Type>PO</Type>
<Guid>153bea7ce67625</Guid>
</Task>
<Task ID="276">
<Name>WIM - acad F14 atc210</Name>
<WorkingDirectory>Y:\applications\276</WorkingDirectory>
<CommandLine><![CDATA[cscript /b apply_TMCCwim.vbs F14atc210 1 C]]></CommandLine>
<Parameters></Parameters>
<PostTaskAction>None</PostTaskAction>
<KACETaskType>Application</KACETaskType>
<FileType>Exe</FileType>
<Type>PO</Type>
<Guid>153bea7ce67df4</Guid>
</Task>
<Task ID="37">
<Name>Apply Computer Name</Name>
<WorkingDirectory>Y:\applications\37</WorkingDirectory>
<CommandLine><![CDATA[cscript ApplyComputerName.vbs]]></CommandLine>
<Parameters></Parameters>
<PostTaskAction>None</PostTaskAction>
<KACETaskType>Application</KACETaskType>
<FileType>Exe</FileType>
<Type>PO</Type>
<Guid>153bea7ce685c3</Guid>
</Task>
<Task ID="270">
<Name>Bat - Acad F14 Pre1 Homework Assistant</Name>
<WorkingDirectory>Y:\applications\270\contents</WorkingDirectory>
<CommandLine><![CDATA[cscript /b invisible.vbs]]></CommandLine>
<Parameters></Parameters>
<PostTaskAction>None</PostTaskAction>
<KACETaskType>Application</KACETaskType>
<FileType>Exe</FileType>
<Type>PO</Type>
<Guid>153bea7ce68d95</Guid>
</Task>
<Task ID="271">
<Name>Bat - Acad F14 pre2 copy scanav.bat</Name>
<WorkingDirectory>Y:\applications\271\contents</WorkingDirectory>
<CommandLine><![CDATA[cscript /b invtest.vbs]]></CommandLine>
<Parameters></Parameters>
<PostTaskAction>None</PostTaskAction>
<KACETaskType>Application</KACETaskType>
<FileType>Exe</FileType>
<Type>PO</Type>
<Guid>153bea7ce69564</Guid>
</Task>
<Task ID="35">
<Name>Fix BCD</Name>
<WorkingDirectory>Y:\applications\35</WorkingDirectory>
<CommandLine><![CDATA[fix_bcd.vbs]]></CommandLine>
<Parameters></Parameters>
<PostTaskAction>None</PostTaskAction>
<KACETaskType>Windows Script</KACETaskType>
<FileType>VBScript</FileType>
<Type>PO</Type>
<Guid>153bea7ce69d33</Guid>
</Task>
<Task ID="24">
<Name>Copy Post Install Files</Name>
<WorkingDirectory>Y:\applications\24</WorkingDirectory>
<CommandLine><![CDATA[copy_post_install_files.vbs]]></CommandLine>
<Parameters></Parameters>
<PostTaskAction>None</PostTaskAction>
<KACETaskType>Windows Script</KACETaskType>
<FileType>VBScript</FileType>
<Type>PO</Type>
<Guid>153bea7ce6a504</Guid>
</Task>
<Task ID="26">
<Name>Setup Post Install Tasks</Name>
<WorkingDirectory>Y:\applications\26</WorkingDirectory>
<CommandLine><![CDATA[setup_post_install_tasks.vbs]]></CommandLine>
<Parameters></Parameters>
<PostTaskAction>None</PostTaskAction>
<KACETaskType>Windows Script</KACETaskType>
<FileType>VBScript</FileType>
<Type>PO</Type>
<Guid>153bea7ce6acd3</Guid>
</Task>
<Task ID="29">
<Name>Update Configuration For OS Tasks</Name>
<WorkingDirectory>Y:\applications\29</WorkingDirectory>
<CommandLine><![CDATA[updateconfig.vbs]]></CommandLine>
<Parameters></Parameters>
<PostTaskAction>Stop</PostTaskAction>
<KACETaskType>Windows Script</KACETaskType>
<FileType>VBScript</FileType>
<Type>PO</Type>
<Guid>153bea7ce6b4a4</Guid>
</Task>
<Task ID="28">
<Name>Set Engine Run Key</Name>
<WorkingDirectory>%systemdrive%\KACE\Applications\28</WorkingDirectory>
<CommandLine><![CDATA[set_engine_run_key.vbs]]></CommandLine>
<Parameters></Parameters>
<PostTaskAction>None</PostTaskAction>
<KACETaskType>Windows Script</KACETaskType>
<FileType>VBScript</FileType>
<Type>PO</Type>
<Guid>153bea7ce6e76d</Guid>
</Task>
<Task ID="23">
<Name>Disable UAC</Name>
<WorkingDirectory>%systemdrive%\KACE\Applications\23</WorkingDirectory>
<CommandLine><![CDATA[disable_uac.vbs]]></CommandLine>
<Parameters></Parameters>
<PostTaskAction>None</PostTaskAction>
<KACETaskType>Windows Script</KACETaskType>
<FileType>VBScript</FileType>
<Type>PO</Type>
<Guid>153bea7ce6ef3c</Guid>
</Task>
<Task ID="258">
<Name>Bat - Acad F14 post0 reset bootorder to HDD 1st</Name>
<WorkingDirectory>%systemdrive%\KACE\Applications\258</WorkingDirectory>
<CommandLine><![CDATA[bat_acad_f14_post0_reset_bootorder_to_hdd_1st.bat]]></CommandLine>
<Parameters></Parameters>
<PostTaskAction>None</PostTaskAction>
<KACETaskType>BAT Script</KACETaskType>
<FileType>Batch</FileType>
<Type>PO</Type>
<Guid>153bea7ce6f70e</Guid>
</Task>
<Task ID="249">
<Name>Bat - Acad F14 post1 cleanup and Join Domain</Name>
<WorkingDirectory>%systemdrive%\KACE\Applications\249</WorkingDirectory>
<CommandLine><![CDATA[bat_acad_f14_post1_cleanup_and_join_domain.bat]]></CommandLine>
<Parameters></Parameters>
<PostTaskAction>Reboot</PostTaskAction>
<KACETaskType>BAT Script</KACETaskType>
<FileType>Batch</FileType>
<Type>PO</Type>
<Guid>153bea7ce6fedc</Guid>
</Task>
<Task ID="15">
<Name>Apply KUID to K1000 Agent</Name>
<WorkingDirectory>%systemdrive%\KACE\Applications\15</WorkingDirectory>
<CommandLine><![CDATA[cscript setKUID.vbs]]></CommandLine>
<Parameters></Parameters>
<PostTaskAction>None</PostTaskAction>
<KACETaskType>Application</KACETaskType>
<FileType>Exe</FileType>
<Type>PO</Type>
<Guid>153bea7ce706ac</Guid>
</Task>
<Task ID="250">
<Name>Bat - Acad F14 post2 Kace and reg keys</Name>
<WorkingDirectory>%systemdrive%\KACE\Applications\250</WorkingDirectory>
<CommandLine><![CDATA[bat_acad_f14_post2_kace_and_reg_keys.bat]]></CommandLine>
<Parameters></Parameters>
<PostTaskAction>None</PostTaskAction>
<KACETaskType>BAT Script</KACETaskType>
<FileType>Batch</FileType>
<Type>PO</Type>
<Guid>153bea7ce70e7c</Guid>
</Task>
<Task ID="264">
<Name>Bat - Acad F14 post3 DS-vdf DeepFreeze install</Name>
<WorkingDirectory>%systemdrive%\KACE\Applications\264</WorkingDirectory>
<CommandLine><![CDATA[bat_acad_f14_post3_ds_vdf_deepfreeze_install.bat]]></CommandLine>
<Parameters></Parameters>
<PostTaskAction>None</PostTaskAction>
<KACETaskType>BAT Script</KACETaskType>
<FileType>Batch</FileType>
<Type>PO</Type>
<Guid>153bea7ce7165a</Guid>
</Task>
<Task ID="274">
<Name>Bat - Acad F14 Post3a reboot 20 seconds</Name>
<WorkingDirectory>%systemdrive%\KACE\Applications\274</WorkingDirectory>
<CommandLine><![CDATA[bat_acad_f14_post3a_reboot_20_seconds.bat]]></CommandLine>
<Parameters></Parameters>
<PostTaskAction>Reboot</PostTaskAction>
<KACETaskType>BAT Script</KACETaskType>
<FileType>Batch</FileType>
<Type>PO</Type>
<Guid>153bea7ce71e21</Guid>
</Task>
<Task ID="275">
<Name>Bat - Acad F14 Post3b ksleep 20 seconds</Name>
<WorkingDirectory>%systemdrive%\KACE\Applications\275</WorkingDirectory>
<CommandLine><![CDATA[bat_acad_f14_post3b_ksleep_20_seconds.bat]]></CommandLine>
<Parameters></Parameters>
<PostTaskAction>None</PostTaskAction>
<KACETaskType>BAT Script</KACETaskType>
<FileType>Batch</FileType>
<Type>PO</Type>
<Guid>153bea7ce725ec</Guid>
</Task>
<Task ID="273">
<Name>Bat - Acad F14 post4 install AV</Name>
<WorkingDirectory>%systemdrive%\KACE\Applications\273</WorkingDirectory>
<CommandLine><![CDATA[msiexec /i anti-virus_ent_32-bit.msi /qn /norestart]]></CommandLine>
<Parameters></Parameters>
<PostTaskAction>Reboot</PostTaskAction>
<KACETaskType>Application</KACETaskType>
<FileType>Exe</FileType>
<Type>PO</Type>
<Guid>153bea7ce72dbc</Guid>
</Task>
<Task ID="253">
<Name>Bat - Acad F14 post5 Fix/scan AV run kbot</Name>
<WorkingDirectory>%systemdrive%\KACE\Applications\253</WorkingDirectory>
<CommandLine><![CDATA[bat_acad_f14_post5_fix_scan_av_run_kbot.bat]]></CommandLine>
<Parameters></Parameters>
<PostTaskAction>None</PostTaskAction>
<KACETaskType>BAT Script</KACETaskType>
<FileType>Batch</FileType>
<Type>PO</Type>
<Guid>153bea7ce7358c</Guid>
</Task>
<Task ID="260">
<Name>Bat - Acad F14 post6 refreeze 2 boots</Name>
<WorkingDirectory>%systemdrive%\KACE\Applications\260</WorkingDirectory>
<CommandLine><![CDATA[bat_acad_f14_post6_refreeze_2_boots.bat]]></CommandLine>
<Parameters></Parameters>
<PostTaskAction>None</PostTaskAction>
<KACETaskType>BAT Script</KACETaskType>
<FileType>Batch</FileType>
<Type>PO</Type>
<Guid>153bea7ce73d5c</Guid>
</Task>
<Task ID="25">
<Name>Enable UAC</Name>
<WorkingDirectory>%systemdrive%\KACE\Applications\25</WorkingDirectory>
<CommandLine><![CDATA[enable_uac.vbs]]></CommandLine>
<Parameters></Parameters>
<PostTaskAction>None</PostTaskAction>
<KACETaskType>Windows Script</KACETaskType>
<FileType>VBScript</FileType>
<Type>PO</Type>
<Guid>153bea7ce7452d</Guid>
</Task>
<Task ID="27">
<Name>Cleanup</Name>
<WorkingDirectory>%systemdrive%\KACE\Applications\27</WorkingDirectory>
<CommandLine><![CDATA[cleanup.vbs]]></CommandLine>
<Parameters></Parameters>
<PostTaskAction>Reboot</PostTaskAction>
<KACETaskType>Windows Script</KACETaskType>
<FileType>VBScript</FileType>
<Type>PO</Type>
<Guid>153bea7ce74cfc</Guid>
</Task>
</Tasks>
Comments:
-
the working directory is the key here to your question.
can you post the portion of your xml file that corresponds to the problem app and also go to either the c drive and get the bat file or from \\ikbox\peinst\applications\xx and post it also - SMal.tmcc 10 years ago-
Thanks, looking at the XML makes more sense. Although I'm looking at what I can do with slipstreaming Windows 7. My aim is to create a scripted Setup, so I can then create images from for the team.
This is part of the XML code
<Task ID="109">
<Name>Install IE10 prereq-KB2533623 update 1</Name>
<WorkingDirectory>%systemdrive%\KACE\Applications\109</WorkingDirectory>
<CommandLine><![CDATA["%systemdrive%\KACE\Applications\109\wusa" ]]></CommandLine>
<Parameters></Parameters>
<PostTaskAction>None</PostTaskAction>
<KACETaskType>Application</KACETaskType>
<FileType>Exe</FileType>
<Type>PO</Type>
<Guid>153bea80a3fb83</Guid>
</Task>
many thanks again..
Matt - ma034001 10 years ago-
your command does not look correct. it is calling wusa but no parameters.
if you look at this msi install you see the parameters listed.
<Task ID="273">
<Name>Bat - Acad F14 post4 install AV</Name>
<WorkingDirectory>%systemdrive%\KACE\Applications\273</WorkingDirectory>
<CommandLine><![CDATA[msiexec /i anti-virus_ent_32-bit.msi /qn /norestart]]></CommandLine>
<Parameters></Parameters>
<PostTaskAction>Reboot</PostTaskAction>
<KACETaskType>Application</KACETaskType>
<FileType>Exe</FileType>
<Type>PO</Type>
<Guid>153bea7ce72dbc</Guid>
</Task>
In the post application task you should have the msu as the attached file and your command line should look something like:
wusa.exe KB934307-x86.msu /quiet /norestart - SMal.tmcc 10 years ago