none
Mounting network resources with winpeshl.ini

    Question

  • Hi,

    Seems like network resources is not mapping with script that is called by winpeshl.ini.
    However, If I use same script with startnet, network drive successfully mapped. (but this is not the requirement)
    Question is I want to map network drive with 
    winpeshl.ini ,,, is it possible, if yes how?
    Googled it a bit and found following links, but none of them provides correct info.

    http://www.msfn.org/board/topic/159076-winpeshlini-help/ 
    http://www.computerperformance.co.uk/Logon/Logon_HomeDir.htm

    Any professional thoughts?


    N.A.Malik


    • Edited by N A Malik Friday, March 07, 2014 9:14 PM
    Friday, March 07, 2014 7:52 PM

Answers

  • The last thing you launch from winpeshl.ini is your shell application. If the last application automatically exits, the WinPE will reboot. Here is an example winpeshl.ini I used for BurnInTest. The bit.exe application holds the shell open and exiting it causes a reboot.

    [LaunchApps]
    %SYSTEMDRIVE%\Windows\System32\wpeinit.exe
    %SYSTEMDRIVE%\Windows\System32\wpeutil.exe, "initializenetwork"
    %SYSTEMDRIVE%\Windows\System32\setres.exe, "1024 768 32 1"
    %SYSTEMDRIVE%\Windows\System32\diskpart.exe, "/s %SYSTEMDRIVE%\Windows\System32\diskpart.txt"
    %SYSTEMDRIVE%\Windows\System32\cdrom.exe
    %SYSTEMDRIVE%\Progra~1\BurnInTest\bit.exe, "-x -r -c burn.bitcfg"

    • Marked as answer by N A Malik Friday, March 14, 2014 7:21 AM
    Thursday, March 13, 2014 3:44 PM

All replies

  • Hi,

    As far as I know the format of Winpeshl.ini and startnet. Please provide the contents of startnet file to us, because there may be some problem with its contents.


    Roger Lu
    TechNet Community Support

    Tuesday, March 11, 2014 7:10 AM
    Moderator
  • Hi,

    I am not using startnet.cmd, (contents work fine here) but failed to mount network resources when run with Winpeshl.ini


    N.A.Malik

    Tuesday, March 11, 2014 7:44 AM
  • Try this:

    [LaunchApps]
    %SYSTEMDRIVE%\Windows\System32\net.exe, "use z: \\server\images password /user:username"


    EDIT: Thinking about this more, you MAY want to try enabling the network. I know initializenetwork *supposedly* isn't required anymore but you can try it anyways.

    [LaunchApps] 
    %SYSTEMDRIVE%\Windows\System32\wpeinit.exe 
    %SYSTEMDRIVE%\Windows\System32\wpeutil.exe, "initializenetwork" 


    • Edited by Tripredacus Tuesday, March 11, 2014 2:35 PM initializenetwork
    Tuesday, March 11, 2014 2:24 PM
  • Thanks Tripredacus,

    When I launched a command prompt while launching from WinPesh.ini, I try to mount network resources and I got the following error:

    Workstation service is not started, help message 2138.

    But I will try what you have said and report results.


    N.A.Malik

    Wednesday, March 12, 2014 12:55 PM
  • Try this:

    [LaunchApps]
    %SYSTEMDRIVE%\Windows\System32\net.exe, "use z: \\server\images password /user:username"


    EDIT: Thinking about this more, you MAY want to try enabling the network. I know initializenetwork *supposedly* isn't required anymore but you can try it anyways.

    [LaunchApps] 
    %SYSTEMDRIVE%\Windows\System32\wpeinit.exe 
    %SYSTEMDRIVE%\Windows\System32\wpeutil.exe, "initializenetwork" 


    Hi,

    Checked it now, again not worked :(

    When PC booted, it splashes Winpeinit.exe and reboot.


    N.A.Malik

    Thursday, March 13, 2014 8:03 AM
  • The last thing you launch from winpeshl.ini is your shell application. If the last application automatically exits, the WinPE will reboot. Here is an example winpeshl.ini I used for BurnInTest. The bit.exe application holds the shell open and exiting it causes a reboot.

    [LaunchApps]
    %SYSTEMDRIVE%\Windows\System32\wpeinit.exe
    %SYSTEMDRIVE%\Windows\System32\wpeutil.exe, "initializenetwork"
    %SYSTEMDRIVE%\Windows\System32\setres.exe, "1024 768 32 1"
    %SYSTEMDRIVE%\Windows\System32\diskpart.exe, "/s %SYSTEMDRIVE%\Windows\System32\diskpart.txt"
    %SYSTEMDRIVE%\Windows\System32\cdrom.exe
    %SYSTEMDRIVE%\Progra~1\BurnInTest\bit.exe, "-x -r -c burn.bitcfg"

    • Marked as answer by N A Malik Friday, March 14, 2014 7:21 AM
    Thursday, March 13, 2014 3:44 PM
  • Thanks a lot, now I am able to mount network resources.

    N.A.Malik

    Friday, March 14, 2014 7:22 AM