WinPE 4.0 Startup Script on a Zero Touch Deployment

Hi,
First, the scenario im using is SCCM2012 SP1 + MDT2012 Update 1, Zero Touch deployment, started  from client, so no USB or PXE boot.
I want to run a startup command when WinPE boots.
WinPE have some ways to run startup scripts, you have to modify or include some files on your boot image to do it, please correct me if im wrong, there are some methods:
Startnet.cmd - When you update boot image on Distribution Point, SCCM adds his binaries and Startnet.cmd doest run on boot.
TSConfig.ini - Not valid for my ZeroTouch Scenario because, when computer reboots to the boot image it doesnt run. Only Media and PXE.
Unattend.xml - Not valid for my ZeroTouch Scenario because, when computer reboots to the boot image it doesnt run. Only Media and PXE.
AutoUnattend.xml - Not valid for my ZeroTouch Scenario because, when computer reboots to the boot image it doesnt run. Only Media and PXE.
WinPEshl.ini - When you update the file gets overwrited, so i cant add commands
to the file at the boot image and then update, anyways im trying to use this method because you should be able to inject the file on the boot image someway during
the update process.
Im trying inject the file at the update distribution point process by adding it on osdinjection.xml, but the update process fails to inject OSD Binaries on the boot image.
Maybe some one know how to do it, file and directories have the correct permisions.

I also wanted to inject some startupscripts in the winPe environment. SCCM 2012 ignored the WinPEshl.ini and the startnet.cmd.
This solved my issue ->
First I enabled powershell for the boot image and then added the script as a "Prestart Command".
Now my powershell script runs before the task sequence starts. 

Similar Messages

  • Zero touch deployment using SCCM

    Hi,
    As SCCM is called as zero touch deployment method for operating system deployment. So please help me to clear my below doubts –
    How SCCM take care of backup & restore of entire HDD, if SCCM does not take care of backup & restore of entire HDD then how we can say it is zero touch deployment method?

    we can use USMT tool with SCCM to decide what we need to backup. I think good planned infrastructure will always have users data on file servers rather than on user's local system. please refer below few URLs for more information:
    http://technet.microsoft.com/en-us/magazine/jj127984.aspx
    http://technet.microsoft.com/en-us/library/dd560793(v=ws.10).aspx
    http://technet.microsoft.com/en-us/library/hh397289.aspx
    http://blogs.technet.com/b/meacoex/archive/2013/02/19/migrate-windows-xp-to-windows-7-using-sccm-2012.aspx
    Prashant Patil

  • GPO with a startup script is not working.

    I have a GPO that I have added a ".bat" script to the "Computer Configuration\Windows Settings\scripts\startup/shutdown" section. The batch file is located in the netlogon folder. This script was part of another Old GPO
    that I want to consolidate into this new GPO. So I am taking the exact settings from the old GPO and  applying it to the new GPO.
    The script does not run at startup and when I go into Group Policy Management, highlight the GPO then on the right pane click the settings tab it doesn't display the startup script as being set. It's just not there. If I select edit and go to the
    "Computer Configuration\Windows Settings\scripts\startup/shutdown\startup" section the .bat script is present though.
    Also if I do a gpresult it also shows that it isn't running the script but all other settings in the GPO are being applied.
    This GPO has the User Config. side disabled
    Why isn't the GPO applying the script or even acknowledging that it is present in the settings tab?

    Hi,
    I could not see any report in the above link. I would like to know that did you follow the below path:
    http://technet.microsoft.com/en-us/magazine/dd630947.aspx
    In addition, logon script could only be applied to users. If want to apply to computers, we should use startup script.
    Regards,
    Yan Li
    If you have any feedback on our support, please click
    here
    Cataleya Li
    TechNet Community Support

  • Dont work startup script after update windows7 of wsus

    hi
    i have a domain controller 2008
    my clients is windows7 ultimate
    i have a file .exe and  i create a policy and this file .exe in start up script
    this policy is correct
    but when update clients. this policy not work .and in task manager, this file .exe  with username system show
    what happend
    please help me

    hi
    i test a way,
    i install a windows 7
    then in gpedit.msc, in startup script, add this file, when restart windows , this policy ok
    now ,i update this windows7, and about get 160 update of microsoft, now when restart windows, this policy not work and in task manager, this file .exe  with username system show
    this error not happend to my domain
    please help me

  • How to specify the webLogic server startup script to use different config.xml  file ??

    Hi,
    I have 2 weblogic startup scripts (startWebLogic.sh and
    startWebLogic_recovery.sh) for the same domain.
    startWebLogic.sh uses config.xml file.
    I would like to use config_recovery.xml as the configuration file for startWebLogic_recovery.sh
    How would I do this ?
    I am using WebLogic Server 6.1 on SunOS 5.8 / HP-UX 11.0.
    Appreciate any help.
    Regards
    Gunaseelan Venkateswaran

    I guess you're using Weblogic 6.1 with WLCS 3.5. I think you're supposed to work with one config.xml for the same domain, and not have a different config.xml.
    To start up different applications or EJBs, use the "target" property to control which applications to start up for the particular instance.
    YY

  • Check for libraries with a startup script

    Is it possible to check for open libraries with a startup script?  Currently, i'm trying like this:
    try{
         app.libraries.item("Marks.indl").name
    catch(e){
         app.open(File("/Support/InDesign/Lib/Marks.indl"))
    If InDesign is already open, this code works correctly (that is, if the library is open, nothing happens, otherwise it opens the library).  However, if I place this in the startup script folder, it will open a second (third, fourth, etc.) copy of the library, even if the library is already open.
    I think this happens because the library files are opened later in the startup sequence then the startup scripts are run.  Is there any way to work around this?
    Thanks,
    /dan

    Is your script supposed to work in ID CS3, or later?
    Anyway, InDesign CS4 seems to reopen the libraries before launching startup scripts, so the following code works for me:
    // Startup Script
    const libName = "Marks.indl",
      libPath = "/Support/InDesign/Lib/";
    var libFile = libPath + libName;
    if( !app.libraries.itemByName(libName).isValid )
      try {app.open(File(libFile))}
      catch(_){alert("Unable to open the library:\r"+libFile);}
    @+
    Marc

  • Need to write a startup script for TunTap

    Dear community,
    I am using 10.10.1, 13" MBPr Late 2013 and I need to be able to access my Work VPN. From what i have been told, the OS X client can't work and that I have been advised to use Shrew Soft VPN. (We initially tried to get the WatchGuard Firewall to build a Mac .dmg and that didn't work). To get ShrewSoft to work, I have had to follow these steps:
    http://ulaptech.blogspot.co.uk/2012/11/shrew-soft-vpn-client-for-mac-os-x.html
    ·         Install the qt-mac-opensource-4.7.1.dmg file first
    ·         Install the tuntap20111101.tar.gz file second
    ·         Install the shrew soft client.
    But the TunTap download that is above will not work as it is unsigned and Yosemite has now killed off unsigned kexts.I tried turning off the requirement for OS X for signed kexts by using this command:
    sudo nvram boot-args="kext-dev-mode=1"
    Then rebooting, but it didnt work.
    I can get the VPN to work if I open up terminal and enter these two commands:
    sudo kextload /library/extensions/tap.kext
    sudo kextload /library/extensions/tun.kext
    But I have to do this everytime i turn my Mac on.
    Could somebody please help me write those two lines into a startup script? As I really have no idea how to do it.
    Your help and guidance would be appreciated

    Choose Utilities from the Finder’s Go menu, open the AppleScript Editor, and paste in the following:
    set thepassword to text returned of (display dialog "Your administrator password is required." default answer "" with hidden answer)
    do shell script "kextload /Library/Extensions/tap.kext" with administrator privileges password thepassword
    do shell script "kextload /Library/Extensions/tun.kext" with administrator privileges password thepassword
    Save it as an application and set it as a login item.
    (120186)

  • Office 2010 setup thru computer startup script

    I am trying to install Office 2010 (sp2 seperate in the updates folder) thru group policy startup script and configured with OCT .msp file. Also try to start Access Runtime 2010 with SP2 update in the updates folder.
    In group policy set run scripts asynchronisely disabled and run scripts visible enabled otherwise i could not see what the system was doiing also not when configiguring OCT with full display. The gpo settings lets the screens show during install so the user
    can see what happens.
    There is another problem that rises however: I have made 2 batchfiles and both are starting as a computer startup script in seperate gpo's (that is in another post). First the Accessruntime is installing, after that Office 2010 is running. Both are installed
    after login but only one of the 2 have SP2 installed (7015) in this case Accessruntime has it. When i run only the Office 2010 install and not the Accesruntime 2010 then Office 2010 standard has also SP2 installed (version 7015). When running both only Runtime
    has this sp2 and Office has 4763 this is without sp2 i believe.
    In both folders (Office en Runtime) are the update files .msp in the updates folder of the installation, so thats ok.
    Why is only 1 of the 2 installing the SP2 when running both?
    A second thing is when restarting the system and before the login screen appears a message: Upgradepatch cannot be installed by Windows installer becasue the upgraded program does not excist of the upgradepatch is not suitable for this program?
    Here is part of the batchfile:
    IF EXIST "c:\program files\Microsoft Office\Office14\WINWORD.EXE" (goto mkfile) ELSE (goto DeployOffice)
    :mkfile
    ECHO Office 2010 is reeds geinstalleerd>c:\temp\office.txt
    goto end
    :DeployOffice
    call cscript \\sharename\office2010\Offscrub03.vbs ALL /bypass 1 /q /s /NoCancel
    start /wait %DeployServer%\setup.exe /adminfile %DeployServer%\officeconfig.msp
    echo %date% %time% Setup ended with error code %errorlevel%. >> %LogLocation%\%computername%.txt
    Another batchfile
    start \\sharename\accessruntime2010\setup.exe /config \\share\accessruntime2010\config.xml
    REM echo %date% %time% Setup ended with error code %errorlevel%. >> %LogLocation%\%computername%.txt
    freddie
    after installing both runtime and office both have SP2 in updates folder:
    runtime 4763
    Office 2010: 7015
    So in this example runtme is installed without the SP2. installing runtime alone gives with SP2...
    The message is gone. There was a other policy inherited from above that caused the message. The only problem now is that when installing both, runtime 2010 with SP2 files and Office 2010 with SP2 files, then one of the two don't get the Sp2 installed, why
    is that?

    > In the bat file, I have a line that records if the install completes
    > successfully or failed.  I don't have any other logging in my
    > script.  Are you referring to something like GPO logging? I know that
    > the script runs because when I am looking at one of the PCs, I can
    So it is NOT GP related but rather your script fails?!? Put some "echo
    %~n0 %date% %time%>>Log-File-Of-Your-Choice.txt" in it to check what's
    going on. And put ">>Log-File-Of-Your-Choice.txt 2>&1" at the end of
    critical commands to capture their output.
    > I ran the gpresult /h command which shows all User Configuration
    > policies, but NOTHING appears under the Computer Configuration section.
    Admin commandline? If not, you don't see computer settings :)
    Martin
    Mal ein
    GUTES Buch über GPOs lesen?
    NO THEY ARE NOT EVIL, if you know what you are doing:
    Good or bad GPOs?
    And if IT bothers me - coke bottle design refreshment :))
    Martin,
    I still did not figure out why the installation script did not work for some of the PCs, even though the PCs have the same image.  For the ones that don't work, I will install manually.  Can you please look at the screenshots of the GPO
    settings I am using, and let me know if there is any settings that I need to remove or add?
      Thanks

  • Missing startup script in bridge cc

    I have photoshop cc and bridge cc loaded on my computer. I also had CS6 on the same computer.  I deleted photoshop CS6 from my computer. When I try to open a file in bridge cc I get an errer message that cs6 cannot be found.  I checked my bridge cc startup scripts folder file and it is empty.  Has anyone had the same problem?

    Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6

  • Photoshop CS6 Startup Script Missing from Bridge CC

    Hi. After downloading a Photoshop CS6 update, Camera Raw unlinked from Bridge CS6. I have a full CC subscription so I downloaded Bridge CC and that solved the problem. Now Photoshop does not appear in the 'tools' menu. It is missing from the Startup Script list in preferences as well. Where can I find or download the photoshop script?
    On a mac, using Mavericks.
    Thank you!

    Bump. Any solutions yet?
    restart Bridge holding down option (Mac) or ctrl (Win) key ad from the menu choose reset references. Try again. BTW, the start up scripts from the needed applications for Bridge Tool menu are in Bridge preferences / Start up scripts, they should show and have a checkmark in front of them.

  • Bridge CS5.1 Tools are missing and there are no startup scripts available.

    Brand new MBP with Creative Suite CS5. Not sure what happened to the Bridge Image Processing Tools that where readily available in CS4. I looked for the Startup Scripts mentioned in other forum posts but this folder is empty: Library > Application Support > Adobe > Bridge CS5.1.
    Why make us hunt for Startup Scripts?

    I think you may be misunderstanding me.
    With many advantages with using mail for this forum the disadvantage sometimes is you don't have oversight in the whole thread.
    I was merely reacting on Curt with the CS5 and CS5.5 solution that solved some problems earlier this year but reading the thread again that seems not related to yours.
    Shortly before Curt his post I read your post about renaming the default folder name (which to me sounds bad). Hence my reference to a solution of an older problem that was solved by creating a new folder with the 5.1 addition and copy the scripts in there
    However I still don't understand why you are not able to have a normal setup after clean install.
    Without having experience with Lion I really would try the Recovery Disk for resetting your user account. With Pre Lion you could do an Archive and Install and it seems Lion also has such an option.

  • Startup Script folder empty - no Bridge CS5 Output to Web?

    Something must have gone wrong installing CS5 Photoshop over CS4 Indesign!
    Even after net-updating to Bridge 4.0.2 the startup script folder (Preferences > Startup Scripts) is empty. When selecting the Output Workspace in Bridge, there is no pane that let one output to Web Gallery or Contact Sheet.
    I'm doing this meanwhile in CS4 Bridge, where it works fine. This Bridge version was coming with CS4 InDesign.
    I downloaded CS5 Photoshop in April (I guess it's an International English upgrade) running it on OSX 10.6.4 on a new 17" Book.
    Is there an upgrade coming, how can I achieve full functionality of Bridge CS5?
    Than you in advance for your input,
    Bernd Rummel

    Hi Omke,
    I did download and install the Photoshop CS5 upgrade by April. Since the Output to Web Gallery pane was not there at the Output workspace as well as all Sartup Scripts are missing at Bridge Preferences, I completely reformatted (actually changed the partitions) and reinstalled OSX 10.6.3, my 17" Book came with. Than I upgraded to OSX 10.6.4.
    Now, before doing (screwing up) anything else, I installed Acrobat 9 and run the rather lengthy process of installing each and every upgrade to the latest version. Than I installed InDesign CS4 (version 6) and upgraded this. Finally I installed Photioshop CS5, only to still have the Startup Scripts and subsequently the output to web gallery pane missing. Of course, also the Twitter and Facebook stuff is not there. However, this is not my concern since I do not use them.
    The upgrade to Bridge 4.0.2 didn't change anything, so didn't todays upgrade to Photoshop 12.0.1.
    Please note that I do not use the CS Suite but upgrade Adobe Acrobat, InDesign and Photoshop individually, which used to work fine for many years. And so I have Bridge CS4 and Bridge CS5 installed side by side. At the CS4 version the Startup Scripts and Output to Web Gallery does work as expected the CS5 version of Bridge is short of both. This shouldn't happen, since I installed CS5 Photoshop over Bridge CS4.
    Actually two weeks back I tied to un-install both the CS4 Bridge as well as the CS5 Photoshop, and than to just install Photoshop CS5 without InDesign with Bridge CS4 being installed. The Startup Scripts and Output to Web Gallery wasn't there either.
    Do you think I can get an other Photoshop CS5 softcopy somewhere that makes my serial number as well as the output to web gallery work? This would turn me back to be a happy photoshopper that I am since version 2.5... when I switched from Cibachrome in darkroom to Photoshop on Mac now about 16 years back.
    I look forward to your input.
    Bernd

  • Qustion for those using a ConfigMgr startup script in your environment

    Hello, I've been testing Jason's ConfigMgr Startup Script and really like it so far. My only gripe is that I can't use environmental variables in the XML file for client and hotfix locations. For example,
    rather than "\\server1.domain.local\Client" I'd like to specify "\\%server%\Client". This would be very helpful to reduce WAN traffic. When I set a variable the script uses it as a literal string and obviously can't find the server named
    %server%. Has anyone found a startup script that will allow this or modified Jason's?
    Thanks!

    I know he spending time with his family over the holidays. I'm will to bet that he will be back on Jan 6th. and it will take a few days for him to clean up his inbox. so look for a reply late next week.
    http://www.enhansoft.com/

  • Group Policy - Computer Startup Scripts - Add/Set Default printer

    Good Morning.
    Let's say we have 2 offices, A and B, and only 1 user.  The user is using Roaming Profiles.  Each office has its own printer.
    What I am trying to do, is make a Startup script that is specific to the COMPUTER being logged into so when any user logs into that computer, they get the printer in that office defined and set as default.
    I am able to do this successfully with my script but ONLY if i have the script be on the USER side of GP (i.e. in the Logon script section)
    That is great that that is working however, when my user goes to Office B, they still get mapped to Office A's printer if I use that method.
    So I figured I could just modify my GP and run the same script from the STARTUP section of the computer, rather than the LOGON section of the user.  It does not work.
    Here is my script:
    Set WRFCUNetwork = CreateObject("Wscript.Network")
    PrinterPath = "\\fileserver\MAINTELLER"
    PrinterDriver = "PrinterDriver"
    WRFCUNetwork.AddWindowsPrinterConnection PrinterPath, PrinterDriver
    WRFCUNetwork.SetDefaultPrinter "\\fileserver\MAINTELLER"
    This is where I Have the script placed:
         Computer Configuration -> Windows Settings -> Scripts(Startup/Shutdown)
    Once i'm in there, I double click Startup, click Add, and select my script which is named:
         MainPrinterSetup.vbs
    I have this GP applied to ONE OU, and that OU has ONE computer in it (my test computer)
    I login with a brand new user called "testuser" (creative, huh?) and basically nothing happens
    except they log in and have some Microsoft Document Image Writer printer set as default (which by the way sure does slow the PC down to the point of it almost being broke if anyone actually tries to print to that by accident)
    No Main Teller Printer, no anything.
    The strangest part about this is, if i apply this script to the user LOGON scripts, it works fine, the printer is there, and is set as default. (but see above why that wont work for my situation)
    So obviously the script works fine, but I guess i'm missing something when it comes to applying GP's to Computers rather than Users.
    Can anyone shed some light as to why the script is not running (i'm guessing the script isn't even attempting to run, rather than failing, but i have no way to know that)
    Thank you in advance!!
    Derek Conlon
    Network Administrator
    WRFCU
    EDIT:  Here are the PC's info that i'm working on:
         Server:  Windows Server 2003 Standard Edition (where my GP's are created and managed with AD)
         Target PC:  Windows XP Professional SP3
    EDIT #2:  I manually navigated to the Script file after logging in and "opened" it and it added and set the default printer no problem.  the issue is definately with the script running at startup.

    I wanted to clarify a few things:
    1. While it is true that printer connections are usually per user, it is definitely possible to create "global printers".  There are a number of ways to do this, but two methods that come to mind are using:
    a. "Rundll32 printui.dll,PrintUIEntry" option with the "/ga" switch.  The "/ga" switch is the key here since it allows you to deploy printers "per machine" instead of "per user".  More information
    about this is available at:
    http://members.shaw.ca/bsanders/NetPrinterAllUsers.htm
    http://technet.microsoft.com/en-us/library/ee624057%28WS.10%29.aspx
    http://www.computerperformance.co.uk/Logon/logon_printer_computer.htm
    http://www.robvanderwoude.com/2kprintcontrol.php
    b. The Print Management console that is available in Windows 2003 R2 and higher can help you deploy printers "per machine" in addition to "per user".  More information about this is available at:
    http://www.czsolution.com/print-management/print-management/print-management-console.htm#DeployingPrintersByGroupPolicy
    http://technet.microsoft.com/en-us/library/cc753109%28WS.10%29.aspx
    2. As Guy mentioned, Group Policy Preferences can help set the default printer.  But there is another way to accomplish this.  The problem with the computer startup portion is that it runs before the user logs in.  And applying this script
    in the login script section would not work per computer unless you used loopback processing.  So another way to do this is to place a script that sets the default printer into the "All Users" startup folder.  Items in the "All Users"
    startup folder run for any user that logs into the computer, but it runs in the user's context.  So, this script would effectively set the default printer on a "per machine" basis.  The script method is a cruder way to approach the problem,
    but it will help get the job done.  Here are some resources on setting the default printer via script:
    http://www.intelliadmin.com/index.php/2007/08/set-default-printer-from-a-script
    http://www.computerperformance.co.uk/ezine/ezine17.htm

  • VB startup script not running on Win7

    Hi,
    my startup VB script not working on Windows 7. The script should install or uninstall office 2010 based on group membership. 
    I tested scipt on Windows XP and everything works. When I run script manually, it works.
    Quite similiar batch file works, office are installed but not same functionality for me.
    I turn UAC off, bot not working.. Also add dword EnableLinkedConnections  but nothing change.
    Batch file works but VBScript not!
    Any advice? Thx

    Hi Tomas Cink,
    Based on my understanding, the start VB script which is deployed via GPO could not works fine on Windows 7 clients, although it can works fine on Windows XP clients and it can
    run sucessfully if manually. Right?
    Firstly, please run the following command on the problematic workstation.
          Gpresult /h > C:\temp\gpresult.html  (“C:\temp\” is the path of the gpresult.html, you can set it by yourself)
    This file is used for checking the result of Group Policy information. Open the file to check if the GPO has applied.
    If the GPO has applied, please follow the following step to narrow down the issue:
    Change the script to the following command: add  > %SystemDrive%\Users\test.txt
    to the script.
    Log on to a client with a regular user account, run
    gpupdate/force, and then re-log on to this client.
    Check if the test.txt file exists in this location
    %SystemDrive%\Users.
    If the
    test.txt file exists, the GPO with startup script is applied successfully. But the result of running logon script achieves the goal we excepted or not which is still not sure.
    Regards,
    Lany Zhang

Maybe you are looking for

  • Old code not working in 11.5

    For years I used the following code to open a .pdf file with a stand alone .pdf reader that does not require installation. open "resume.pdf" with "Foxit Reader.exe" When I converted the old director file from MX to 11.5 and tried to execute the code

  • SAP R/3 goods receipt and issue process through RF

    Dear All, We need the below information. In order to setup RF enabled goods receipt and goods issue what basic infracture we need to have. we are not intersted in using WM module, with out WM we can go for this ?? Is this the right forum to post this

  • How to transfer pdfs in Adobe reader app on ipad to desktop pc?

    I can't see to find the solution of this problem anywhere. Is it possible to transfer the pdfs saved in the Adobe Reader app to a PC (not a mac, I don't have one). Basically, I want to be able to plug my ipad into my PC and take the pdfs and transfer

  • MIRO and Part II value not matching-so many invoices are pending please

    Dear sir we are facing problem in Miro(Invoice verification) while goods receipt we changed the base value and also we entred vendor invoice value (migo),As same as Part I we posted Part II also But while doing MIRO excise values it is picking from P

  • Blinking buttons in sequence

    I am building a calculator simulator in Flash CS3 using Action Script 3. I would like to demonstrate how to solve a problem by "blinking" the correct button sequence on the calculator. I can "blink" one button now by adjusting the alpha setting of a