What am I doing wrong? - Office 2010 to Office 365 Task Sequence error capturing
I need to learn more about error handling in Task Sequences.
I have this TS set up (not part of OSD) to remove Office 2010/Visio 2013/Project 2013 and install Office 365, but it only works if the older versions of Office aren't installed/removed on my client machines during this process. That's great in testing to prove that my application installation works, but 100% of my productions clients will have Office and it will be removed. I can get as far as installing Office 365 in my TS, but the installation fails on the workstation and the deployment status under Monitoring (and in software center) reports that it was successful. OffScrub will run, but O365 C2R fails to actually install if there was a product removed first.
It looks like there's a lot happening in my sequence between the reboots and OffScrub, but we're going from 64-bit 2010 to 32-bit O365 and a full removal is a must (OffScrub is set to run if the old .exe's are found and will continue on error). The reboots are just to make sure there are no pending changes and they ensure that I don't get any loose ends with file associations when everything is done. Some users will have Visio or Project 2013 as well, so multiple versions of OffScrub will be used on each pass. Does it need to be a package? I figured the application's error code would have sent it back, but that's apparently not the case?
Here's what I've resorted to when it comes to testing if my installation status reported properly, but this doesn't work either.
My real question is...What am I missing in terms of error handling in a Task Sequence? The parts work independently, so I think that my lack of TS knowledge is keeping me back.
I tried TS variables like _SMSTSLastActionRetCode and _SMSTSLastActionSucceeded...but something didn't work. Do I need to use them every time? Does anyone have a link to something that helped them click on this subject? The books have a lot of instructions that I can follow, but I can't find the info that takes me one step deeper with good examples and I have nobody here to talk shop with.
The logs for Office365 in C:\Windows\Temp don't even have an entry with today's time stamp on it and I've already tried the installation a few times. I don't think the Task Sequence is making it that far, which is why I'm assuming my task sequence is incorrectly configured. Running setup.exe with my config file immediately generates a log file. Disabling all of the other steps in my task sequence (all reboot and OffScrub) results in the same false positive.
I can also add that this same process works very well in PDQ Deploy. OffScrub, reboot, rinse, repeat, Install O365.
Posted Oct 12, 2016, 6:44 PM UTC · edited
I might be wrong here but I don't think a task sequence survives a reboot. That might explain why, if nothing is found, it completes successfully.
It survives if the task sequence controls the reboot.
Good to know. Thank you.
It looks like it does. My clients reboot, run OffScrub, then reboot again, then OffScrub again...
I can see that the stages of my TS on the splash screen are showing the later steps as I've labeled them. Thanks for your suggestion.
I've also heard that task sequences don't survive reboots. I think the only step that does is the one to install and configure the client and that's only because that step is designed to reboot and launch the task sequence again.