Video Screencast Help
Symantec to Separate Into Two Focused, Industry-Leading Technology Companies. Learn more.

wait for winpe environment before proceeding

Created: 16 Jul 2012 • Updated: 30 Jul 2012 | 7 comments
This issue has been solved. See solution.

Is there a way to set in your job to wait for the PE environment?  Say I put in my job reboot to PXE can I then put something in the job to wait and check for this specific environment before proceeding with the next task?

Comments 7 CommentsJump to latest comment

Stéphane Bachelet's picture

If you have a look to this article there are several jobs and tasks samples:

https://www-secure.symantec.com/connect/downloads/deployment-solution-samples-v71-sp1-smpcms-71-x64

One of this job check if the computer is in PE Environment, if not it launch a reboot to environment task.

Stéphane Bachelet

Azerys

Stéphane Bachelet

Azerys

jlawson's picture

I have installed these samples and I don't see the job that does this.  Do you know the exact name of the job you are referring to?

shailesh_mali@symantec.com's picture

As per my understanding, you want to run particular task only in preboot environment, but before running it you want to make sure, if you are into the preboot environment or not ? correct ?

There is a very simple way of achieving it with Notification Server

Let's say you have created a Job with two tasks in it.

1 Boot to PXE

2 Create Image

To make sure if create image is running in preboot only, you need to click on check box which says Fail job if any task fails ( you find this in new client job )

Now NS will take care of your concern.

Just for your information, with 7.5, Boot To PXE/Automation/Production will succeed only after booting into that particular environment unlike in previous releases. There is one more addition with this release, your server will not boot to PXE if it is already in PXE after running BOOT TO PXE task.

I hope this will help you.

jlawson's picture

ok but 7.5 is not a possibility right now.  Word is won't be available till September the earliest.

shailesh_mali@symantec.com's picture

One more way out for you...

On notification server you'll find a task named Run Script

I . Create a Rub script task with following script ( use command script option )

@ECHO OFF
set regpath=HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion
set regvalue=ProductName
set regdata=Preinstallation
reg query "%regpath%" /v "%regvalue%" | find /i "%regdata%"
 

II. Create a job with three tasks

  1 BOOT TO AUTOMATION./PXE

  2 RUN SCRIPT

  3 Task which you want to run in automaton/pxe

Make sure that check box which says Fail Job if any Task fails is checked

Run script task will succeed only when it is in automation/pxe and will fail in production

All the best.

 

SOLUTION
jlawson's picture

shailesh_mali@symantec.com

 

Thanks for this info as from what I see from the code this should work prefectly.

I noticed you edited the post you may want to edit this part of the post:

I . Create a Run