Quantcast
Channel: Symantec Connect - Deployment Solution - Discussions
Viewing all articles
Browse latest Browse all 1130

Make task wait until reboot

$
0
0
I need a solution

My process for deploying new PCs is as follows:

  • Scripted install of Win7 Enterprise, via WinPE on a USB drive or booted into automation.
  • Join the domain
  • Run script:
    @echo off
    net user Altiris /delete :: Delete the local account DS created during the scripted install.
    net user administrator lamepassword:: Set the local admin password to the helpdesk's standard.
  • Install MSIE 11 (the campus SCCM system doesn't do this automatically.)

After this, all the various software packages for new PCs are installed via a bunch of tasks that run the installation .bat files, along with conditionals to consider nonzero successes still success.

This all works just fine, but I sporadically/randomly get a -1073741502 return code during an installation--and the installation doesn't happen. Upon some investigation, this seems to happen when a successful installation requires a reboot (like MSIE 11), and the next job in line is sent while the PC is in the shutdown phase.

Here's my current task to install MSIE 11:

  • Run script:
    taskkill /im msiexec.exe /f /t :: Stop any installers currently running
    \\192.0.2.200\NSCap\Software\MSIE11\IE11-Windows6.1-x64-en-us.exe /quiet
  • If return value = 3010 or 0 else :: 3010 means success with a required reboot; we're just declaring 3010 and 0 both successful

What I'm looking for is a way to tell the NS "don't consider this task complete until the reboot is done".

Thoughts?

Thanks!

0

Viewing all articles
Browse latest Browse all 1130

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>