Topic: mount network drive during win10xpe boot  (Read 535 times)

mount network drive during win10xpe boot
« on: August 27, 2019, 06:38:47 PM »

senile2

  • Jr. Chef
  • **
  • Date Registered: Mar 2014
  • Posts: 10
I am trying to add the "net use" command to mount a network drive during the boot process .... so far I have tried to make it work from a batch file, added it to startcmd, and tried to make a plugin.  I have had no success.  Can anyone give me a hint or point me in a direction that has been proven to be successful?

Thanks
senile2

Re: mount network drive during win10xpe boot
« Reply #1 on: August 28, 2019, 09:20:08 AM »

ChrisR

  • Moderator, XPE Baker
  • Grand Chef
  • *****
  • Date Registered: Mar 2011
  • Posts: 3494
Hello senile2,
On my side, I use a PENetwork to mount a network drive.
It is defined for each profile in PENetwork.ini using PE Network Manager - Configuration/profile editor.

In Build Core, Network Options tab, use the button "Start PENetwork Configuration Editor"
Select the profile (Wireless, dynamic Ip...) then in the tab Network Drives entered the informations
Use the "+ Add" button to add the Network Drives to the profile then Save.
You can do the same on the other profiles.

ila_rendered

For info, the custom PENetwork.ini is placed in \Custom\PENetworkini folder. Delete this folder to return to the default configuration
in PENetwork.ini you should have something like that.
Code: [Select]
NetPath=NetPath
NetDrv.Path1=\\ComputerName\SharedFolder
NetDrv.User1=xxxxx
NetDrv.Pass1=xxxxx
NetDrv.Letter1=Z:


Otherwise, you can probably use PeNetwork_AfterIP.cmd with Net Use Z: \\xxxxx written inside
For that, copy PeNetwork_AfterIP.cmd from ".\Projects\Include\x64(x86)\AdditionalFiles\Windows\System32" to ".\Custom\x64(x86)\AdditionalFiles\Windows\System32"
Edit the batch of the Custom folder (keep the Include folder intact) and in Build Core, Main Interface, enable "Add Your Custom Folder" CheckBox
In running PE, it is launched after the network configuration, once getting the IP address
« Last Edit: August 28, 2019, 09:39:13 AM by ChrisR, Reason: Add Screenshot »

Re: mount network drive during win10xpe boot
« Reply #2 on: September 07, 2019, 12:13:41 PM »

senile2

  • Jr. Chef
  • **
  • Date Registered: Mar 2014
  • Posts: 10
Thanks ChrisR .... finally got the first suggestion to work.

senile2

 

Powered by EzPortal