Jump to content











Photo

WinPE Boot Stick adding scripts on boot.


  • Please log in to reply
2 replies to this topic

#1 Ghost21

Ghost21
  • Members
  • 1 posts
  •  
    Canada

Posted 18 January 2012 - 07:55 PM

I have a deployment USB stick that we use first to boot to WinPE then we have to push F8 to goto a prompt to run a .cmd file which in turn.
Grabs PC info and adds it to SCCM after that we wait a minute or so in which we then click next and the image tasksequence gets deployed to it.

Is there a way so that you can run the .cmd file automatically then pause and get the task sequence??

Can I run a script after the deployment of the tasksequence ?

Thanks..

#2 sbaeder

sbaeder

    Gold Member

  • .script developer
  • 1338 posts
  • Location:usa - massachusettes
  •  
    United States

Posted 20 January 2012 - 10:58 PM

Of course, with "software", the answer would most probably "yes"...But I think the real question is HOW do you do it? :dubbio:

SO, there are certainly ways to run a cmd file as part of the boot process instead of going to a GUI shell...there are lots of pointers here.

And in that cmd, you can certainly "sleep" a given amount of time using either tricks like ping or adding a "sleep.exe" to the PE.

Not sure what you "click" at that point (especially if you are in a CMD shell) or what the "tasksequence" does, but most likely, you could run some sort of process to "watch" for it to complete, and then run an additional set of tasks.

But without a lot more specifics, not sure we can help...

Good Luck
:cheers:
scott

#3 steve6375

steve6375

    Platinum Member

  • Developer
  • 7566 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films
  •  
    United Kingdom

Posted 20 January 2012 - 11:15 PM

Do you mean WinPE v1 (XP) or v2/v3(Vista/7)? Add an Autounattend.xml file to the USB pen if v2/v3...???




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users