Jump to content

Mapping a network drive under Windows PE


Recommended Posts

In the unattended.xml, section RunSynchronousCommand, Pass1 WindowsPE,

I tried using the command "net use w: \\server\share" to map a drive. I also entered

the proper credentials. However the drive isnt mapped under PE.

What am i doing wrong ?

<RunSynchronous>

<RunSynchronousCommand wcm:action="add">

<Order>1</Order>

<Credentials>

<Domain>mydomain</Domain>

<Password>mypassword</Password>

<Username>administrator</Username>

</Credentials>

<Path>net use w: \\myserver\myshare</Path>

</RunSynchronousCommand>

</RunSynchronous>

Link to comment
Share on other sites

  • 5 weeks later...

from What I see you're trying to map a network drive for when WinPE boots so you don't have to do it manually. If I'm correct this will not work. You're best bet would be to either make a batch file and execute it or just type it in yourself. It took me quite a bit of searching to find how to map a domain network drive, but heres the syntax: NET USE <DriveLetter>: <NetworkLocation> <DomainPassword>|* /USER:<Domain>\<DomainUserName>

<DriveLetter> = The letter you would like to map

<NetworkLocation> = The location on the network you are trying to map to

<DomainPassword> = The users domain password

<Domain> = The domain the user and network location is on

<DomainUserName> The username of the user

Example: NET USE I: \\Domshare\Install mypass123 /USER:mydomain.ca\domuser

Hope this helps.

-KD

Link to comment
Share on other sites

Hello gangsterhenk!

Like KD has described you can't put a command - like net use - into the path section of xml file. You just can put in the path there - like \\server\share, without net use.

So like KD has described you need to establish the connection to the share by using a batch.

BTW, make sure that you have access to your network at all by enabling the network support in your batch file. Use

wpeutil intializenetwork

as first command in your batch.

Regards,

Martin

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...